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
91. Find the output void main ( ) { int x=5, y=3; x=x+~y+1; printf (%d", x); }
- 4
- -2
- 2
- None of these
93. Width of address bus of pentium IV processor is
- 32 bits
- 64 bits
- 128 bits
- None of these
94. Find the output. void main ( ) { float x=3 . 2; float y=2.2 printf("%.2f", x/y); }
- 1.45
- 1.45 45 45
- 1.50
- Expression syntax error
95. Find the output void main ( ) { int x=1; if (x++>=x) printf("%d", x); else printf ("%d", ++x); }
- 2
- 3
- Compilation error
- None of these
96. Find the output. void main ( ) { char x,y; printf ("%d', scanf ("%c%c', &x, &y)); }
- 2
- Segmentation violation
- A fatal error
- Compilation error
97. Find the output void main ( ) { int a=9; char c; c=2*20.5+a; printf("%c", c); }
- a
- b
- 9
- 2
98. in LINUX o.s. the virtual address is of
- 24 bits
- 32 bits
- 64 bits
- None of these
99. Find the output void main ( ) { unsigned int i=65535; printf ("%d, i++ + ++i); }
- 0
- 65535
- Error, Ivalue required
- None of these
100. Find the outptut void main ( ) { enum color (red, green); enum colors (green, white); printf (%d %d", green, white); }
- 1 1
- 0 1
- 1 0
- Compilation error