-
What is the type of variable ‘b’ and ‘d’ in the below snippet?
int a[], b;
int []c, d;
-
- ‘b’ and ‘d’ are int
- ‘b’ is int variable; ‘d’ is int array
- ‘d’ is int variable; ‘b’ is int array
- ‘b’ and ‘d’ are arrays of type int
- None of these
Correct Option: B
If [] is declared after variable it is applicable only to one variable. If [] is declared before variable it is applicable to all the variables.