Order of elements in C table/endiannes – stackoverflow.com

Why the output of this program is 4? #include <iostream> int main() { short A[] = {1, 2, 3, 4, 5, 6}; std::cout << *(short*)((char*)A + 7) << std::endl; return 0; } ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Order of elements in C table/endiannes – stackoverflow.com"