C | Data Types | Question 2

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

filter_none

edit
close

play_arrow

link
brightness_4
code

1. short int x;

chevron_right


filter_none

edit
close

play_arrow

link
brightness_4
code

2. signed short x;

chevron_right


filter_none

edit
close

play_arrow

link
brightness_4
code

3. short x;

chevron_right


filter_none

edit
close

play_arrow

link
brightness_4
code

4. unsigned short x;

chevron_right


(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


Article Tags :
Practice Tags :


1


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.