C Data Types 2 Questions and Answers
C Data Types questions with answers help learners understand how data is stored, manipulated, and used in C programming. Data types form the foundation of C as they define the type of data a variable can hold, such as int, float, char, or double. Mastering C data types is essential for students preparing for placement exams or programming interviews at companies like TCS, Infosys, and Wipro. This topic often features in C programming MCQs and technical test questions that evaluate understanding of memory allocation, data precision, and type conversions. Practice these programming questions and answers to strengthen your core knowledge and prepare for real-world coding challenges.
Understand various data types in C. Study C structures and dynamic memory allocation
C Data Types 2
81. In an intel fami9ly processor if the data is 0X0FF trhen how they are stored in memory of addresses 3001 & 3002?
- 255 0
- 0 255
- 15 15
- None of these
83. 'putc' is a command to
- write character into bufffer
- write character into stream
- write character into monitor
- read character into buffer
84. Find the output void main ( ) { int i=5; enum vehicle (car=i, bike, scooter); printf ("%d", car); }
- 0
- 5
- Compilation error
- None of these
85. Find the output void main ( ) { if ("\0") printf ("Hello"); else printf ("Hi"); }
- Hi
- Hello
- No output
- None of these
86. Find the output void main ( ) { int i=5; printf ("%d %d %d", ++i, +i,i); }
- 6 6 6
- 6 7 7
- 6 5 5
- 7 6 5
87. Find the output void main ( ) { enum x{a=2, b--, c++); printf("%d %d %d", a, b, c,); }
- 2 2 2
- 2 3 2
- 2 3 4
- Compilation error
88. Find the output void main ( ) { typedef char int; int x='a', y='1'; printf ("%d", x+y); }
- 146
- -110
- Compilation error
- None of these
89. Unrealiable conversion between int and float is called as
- data overflow
- Data underflow
- Suffering
- None of these
90. Find the output. void main ( ) { int x=0x; int y=012; int z=10; if (x==y==z) printf("mystery"); else printf("shocked"); }
- mystery
- shocked
- Invalid assignment
- None of these