Recent questions tagged datatype

511
views
3 answers
1 votes
What is the output of the program? int main() { union a { int i; char ch[2]; }; union a u; u.ch[0] = 3; u.ch[1] = 2; printf("%d, %d, %d", u.ch[0], u.ch[1], u.i); return 0; }
237
views
0 answers
0 votes
My doubt is very basic, I want to understand what is the use of signed and unsigned used with integer.?2.what does size of signed int (-128 to 127) signify?3how to big endian and little endian output problem in C.?Please suggestThanks
3.9k
views
2 answers
2 votes
Predict the output of following C programs1.#includeint main(){ char a = '\012'; printf("%d", a); return 0;}2.#includeint main(){ char a = '012'; printf( ... main(){ char a = '\012'; printf("%c", a); return 0;}
To see more, click for the full list of questions or popular tags.