0

How the program executes and how to solve this?

int arr[2][3]={2, 3, 4, 5, 6, 7}; printf("%d", (*(*(arr+1)))); Output is 5

18th Mar 2019, 4:57 PM
Rajesh Kumar
Rajesh Kumar - avatar
4 Respostas
0
This contains a syntax error
18th Mar 2019, 5:51 PM
Bebida Roja
Bebida Roja - avatar
0
Bebida Roja sorry I have forgotten to add a "+" symbol in the print stmt. Now it is updated.
19th Mar 2019, 3:30 PM
Rajesh Kumar
Rajesh Kumar - avatar
0
Use the fact that *(arr + i)==arr[i]
19th Mar 2019, 3:44 PM
Bebida Roja
Bebida Roja - avatar
0
Ok thanks
19th Mar 2019, 3:48 PM
Rajesh Kumar
Rajesh Kumar - avatar