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
61. Find theoutput. void main ( ) { float f=3.2; double d=3.2; if (f==d) printf ("equal"); else printf ("not equal "); }
- equal
- not equal
- No output
- None of these
62. Find theoutput. void main ( ) { int x=0xFFFB; printf(%d", x) }
- 5
- -5
- 65631
- 32762
63. Find the output. void main ( ) { printf ("%d %d %d", 40000, 40. 4); }
- -25536 40 4
- -25536 0 40
- -25536 0 0
- None of these
64. In LINUX each memory variable's real address is
- 20 bits
- 16 bits
- 32 bits
- 24 bits
65. Find the output void main ( ) { char x=-49; printf ("%c", ~x); }
- 49
- 1
- 0
- None of these
66. Find the output extern char s="\dx'; void main ( ) { printf ("%c", s); }
- x
- d
- Compilation error
- No output
67. If there are 32 segments, each of size 1k bytes, then the logical address should have
- 13 bits
- 14 bits
- 15 bits
- 16 bits
68. Find the output char s; void main ( ) { s='a'; { static char s='b'; printf (%c", s); }
- b97
- b0
- b49
- Compilation error
70. Find the output. void main ( ) { int x=-350u; char y=-145u; printf ("%u", x+=y); }
- 65297
- 239
- 65041
- None of these