Often I see people arguing that the code is not standard. what do they really mean?
for example, if I said:
itoa () to convert an integer to a character, and they will ignore it, implying that "the code is non-standard!".
Some implementations of the C ++ standard allow certain things that are not allowed.
If you use these functions, you can say that your code is not up to standard.
Example:
int x = 5; char arr[x];
The above code is not allowed in the C ++ 03 standard, but is allowed in C99. At the same time, some compilers claiming to implement C ++ 03 can use this code in a C ++ program.
, . . , , . __uuidof (T) MSVC. , , , .
, " ANSI C/++". , , .
"" .
, , , . , ( -, ). itoa() - , , , .
itoa()
, , - / , , . , , Stackoverflow, , , , , , . itoa) snprintf() , itoa(), .
itoa)
snprintf()
, undefined, , , - , , . ; undefined , , , , , "" , . .
, ( ) , , , , . , , .
, "" ++, - , , . , comp.lang.++, , , , ++. ..
, , ++ . -, , , . , , , , .
, C ++. - , , "" ( ); :
, . , gcc MSVC, , ; itoa - .
itoa
, , . , Windows Linux, , , , ( , ).
C ++ ISO. , C ++, , , .
, , , .
" " , (, itoa) , , . (, Microsoft ++, volatile , , )
volatile
, . , . itoa, , , , .
, . , , , , .
, itoa() Posix (unix), ISO _itoa(), , jalf, .
One strange function that I saw in the compiler that comes with UBuntuis that you can dereference an uninitialized pointer. And it just happened using memory in my program space.
UBuntu
I don’t know which version of UBuntu, but my professor and I were very puzzled to see this. And I remember that in this case the result is 1.
Source: https://habr.com/ru/post/1784440/More articles:IIS7.5 Kernel Caching OutputCacheModule 'public' URL Ignore - iisHow to organize a large Rails application? - ruby-on-railsStrange type operator behavior? - c ++Почему ASP.NET ViewState сохранена с помощью asp: dropdownlist, но не asp: table? - dynamicAuthentication between a client-side JavaScript application and a server-side HTTP interface? - javascriptHow to set the __str__ method for all ctype structure classes? - pythonHow should I implement the business logic layer in Rails? And where should I put this code? - ruby-on-railsrails 2 replace_html puts javascript on the page - prototypejsAptana, CSS editor (customization) - cssIs there a library for interacting with social networks? - mediaAll Articles