Skip to content
Related Articles

Related Articles

C | Data Types | Question 2

View Discussion
Improve Article
Save Article
  • Difficulty Level : Easy
  • Last Updated : 28 Jun, 2021
View Discussion
Improve Article
Save Article

Which of the following is not a valid declaration in C?




1. short int x;




2. signed short x;




3. short x;




4. unsigned short x;

(A) 3 and 4
(B) 2
(C) 1
(D) All are valid


Answer: (D)

Explanation: All are valid. First 3 mean the same thing. 4th means unsigned.

Quiz of this Question


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!