- A1
- B2
- C3 and 4
- DAll
All are valid
Output:
4
Since the size of a union is the size of its maximum datatype, here int is the largest hence 4.
Output:
8
Default data type of signed, unsigned is int. In 64-bit machine size of int is 4 byte.
signed=4
unsigned=4
Then, 4+4=8
All are not modifier. Also register is not a modifier.
Output on Turbo C++ 3.0:
8 4 2
Output on Turbo C++ 4.5:
8 4 2
Output on Linux GCC:
8 4 4
Output on Visual C++:
8 4 4
By default data type of numeric constants is:
6.5 : double
90000: long int
'A': char
In C size of data type varies from compiler to compiler.
By default floating constant is of a double data type. By suffixing it with f or F, it can be converted to float data type. For more details, this post can be referred here.
Char is NOT an Integer.