Chapter - 9: Arrays

What is the difference between the 5’s in these two expressions? (Select the correct answer)


C
Sections
4
Exercises

A

B

C

D

E

F

G

H

I

J

K

L

1

2

3

4

5

int num[5] ;
num[5] = 11 ;

1. first is a particular element, second is the type
2. first is array size, second is a particular element
3. first is a particular element, second is array size
4. both specify the array size


Ans: 2. first is array size, second is a particular element


© 2020 Garbage Valuegarbage value logo