C Data Types 2 Questions and Answers

Take Exam

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

Showing 10 of 159 questions

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
Show Answer Report

82. In a big endian system the data 456 can be store in

  • 1 199
  • 1 200
  • 4 86
  • 86 4
Show Answer Report

83. 'putc' is a command to

  • write character into bufffer
  • write character into stream
  • write character into monitor
  • read character into buffer
Show Answer Report

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
Show Answer Report

85. Find the output void main ( ) { if ("\0") printf ("Hello"); else printf ("Hi"); }

  • Hi
  • Hello
  • No output
  • None of these
Show Answer Report

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
Show Answer Report

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
Show Answer Report

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
Show Answer Report

89. Unrealiable  conversion between int and float is called as

  • data overflow
  • Data underflow
  • Suffering
  • None of these
Show Answer Report

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
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test