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

91. Find the output void main ( ) { int x=5, y=3; x=x+~y+1; printf (%d", x); }

  • 4
  • -2
  • 2
  • None of these
Show Answer Report

92. Find the output { printf("%f", 9/5); }

  • 1.0
  • 1.8
  • 2.0
  • None of these
Show Answer Report

93. Width of address bus of pentium IV processor is

  • 32 bits
  • 64 bits
  • 128 bits
  • None of these
Show Answer Report

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

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

96. Find the output. void main ( ) { char x,y; printf ("%d', scanf ("%c%c', &x, &y)); }

  • 2
  • Segmentation violation
  • A fatal error
  • Compilation error
Show Answer Report

97. Find the output void main ( ) { int a=9; char c; c=2*20.5+a; printf("%c", c); }

  • a
  • b
  • 9
  • 2
Show Answer Report

98. in LINUX  o.s. the virtual address is of

  • 24 bits
  • 32 bits
  • 64 bits
  • None of these
Show Answer Report

99. Find the output void main ( ) { unsigned int i=65535; printf ("%d, i++  +  ++i); }                                                      

  • 0
  • 65535
  • Error, Ivalue required
  • None of these
Show Answer Report

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