Output of C and C++ snippets on overflow, endianness, pointers and copy constructors
Filed under REVE Systems
The question
Predict and explain outputs for code on char overflow (125+10), little versus big endian with a char pointer on an int array, a malloc inside a function using a by-value pointer, a pointer-to-pointer array of strings, a copy constructor missing a member, and virtual function hiding via overloading with object slicing.
No write-up yet. Related questions below have one.
Related REVE Systems questions
- Check whether a binary tree is structurally symmetric
- Delete a node from a linked list; replace each element with greatest on right; find missin
- Convert IPv4 string to unsigned integer in C, with test cases
- Foreign key insert outcome and Java static initializer output
- Subnet 85.13.210.64/28 size and usable range
Collected from public candidate posts and coding forums. Updated Nov 2026.