adplus-dvertising
frame-decoration

Question

What is the type of variable ‘b’ and ‘d’ in the below snippet?
int a[], b;
int []c, d;

a.

‘b’ and ‘d’ are int

b.

‘b’ and ‘d’ are arrays of type int

c.

‘b’ is int variable; ‘d’ is int array

d.

‘d’ is int variable; ‘b’ is int array

Answer: (c).‘b’ is int variable; ‘d’ is int array

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the type of variable ‘b’ and ‘d’ in the below snippet?