Question: Assume the following declarations are made and indicate which items below are valid subscripted variables. int a[] = new int[10]; char b[] = new char[6];
int a[] = new int[10];
char b[] = new char[6];
int x = 7, y = 2;
double z = 0.0;
a. a[0]
b. b[0]
c. c[1.0]
d. b['a']
e. b[a]
f. a[x + y]
g. a[x % y]
h. a[10]
i. c[-1]
j. a[a[4]]
Step by Step Solution
3.45 Rating (164 Votes )
There are 3 Steps involved in it
a Valid b Valid c ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
1013-C-S-O-S (793).docx
120 KBs Word File
