Computer Science, asked by aghosh14, 8 months ago

what is the right way to initialize array in c?

a) int arr{}={1,2,5,6,9}
b) int arr[5]={1,2,5,6,9}
c) int arr{5}={1,2,5,6,9}
d) int arr()={1,2,5,6,9}​

Answers

Answered by surbhikushwaha17
4

Answer:

)a) int arr{}={1,2,5,6,9}

b) int arr[5]={1,2,5,6,9}

c) int arr{5}={1,2,5,6,9}

d) int arr()={1,2,5,6,9}

yesme se kuch bhi ho sakta h..XD....

Answered by hlohana137
0

Answer:

it might  be c

Explanation:

because we are intialising and declairing both at same time

b and c are not follow the syntax

a is inncorract because array must fixed in advance before declairing so that we are using link list

Similar questions