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
43. An individual entiry of a program is known as :
- Keywords
- Identifiers
- Tokens
- Constants
44. Find the output. void main ( ) char s='A' char a='a'; printf ("%d", s-a); }
- -32
- -18
- Compilation error
- None of these
45. Character constant is 2 byte long to represent
- hexadecimal constant
- octal constant
- both octal & hexadecimal constant
- None of these
46. The range of an integer constant for a computer with 'w' bit word is
- -2(power of w) to +2 (power of w-1)-1
- -2(power of w-1) to +2 (power of w+1)-1
- -2(power of w-1) to +2 (power of w-1)+1
- -2(power of w-1) to +2(power of w-1)-1
47. ASCII code to represent a character set uses how many bits ?
- 6 bits
- 7 bits
- 8 bits
- None of these
48. Which of the following is/are valid white space character ?
- Blank space
- Horizontal tab
- Form feed
- New line
49. Which of the following is/are valid white space character ? I. Blank space II. Horizontal tab III. Form feed IV. New line
- only I
- both I & IV
- I, II & IV
- All of the above
50. Find the output void main ( ) { int a=5, b=3 c; c=a, a=b, b=c; printf (%d %d", a, b); }
- 3 5
- 5 3
- Compilation error
- None of these