14. Identify the wrong expression given int a[10];
a.al-1]
b.a[10]
c.a[0]
d.++a
Answers
Answered by
0
(c) 0... answer..for [10]
Answered by
0
The wrong expression is al-1](option a).
Given:
int a[10]
To Find:
The wrong expression.
Solution:
We are required to find the wrong expression in the following options.
Here int a[10] refers to 10 cells of integers allocated in memory/array.
- a[10] locates the 10th cell in the memory/array.
- a[0] locates the 0th cell in the memory/array.
- ++a indicates an increment of the a.
- But, a|-1] was incorrect which shows an error when the code is run.
All the expressions have some role except al-1] which was incorrect.
Therefore, The wrong expression is al-1](option a).
#SPJ2
Similar questions