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
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
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
Social Sciences,
5 months ago
Math,
5 months ago
English,
11 months ago
Physics,
11 months ago
History,
1 year ago