0

Array

#include <stdio.h> #include <stdlib.h> int  main() { int i, arr[5] = {25, 30, 35, 40, 55}; for( i=0; i<5; i++) { printf("%d   ", *arr); arr++; /* 'main':| 9|error: lvalue required as increment operand| */ } return 0; }

20th Oct 2019, 8:13 AM
simi sam
simi sam - avatar
7 odpowiedzi
+ 1
Thank you sir
20th Oct 2019, 8:37 AM
simi sam
simi sam - avatar
+ 1
Ok thanks
20th Oct 2019, 8:41 AM
simi sam
simi sam - avatar
0
Is it a valid certificate for interviews by going through solo learn
20th Oct 2019, 8:38 AM
simi sam
simi sam - avatar
0
Could you answer
20th Oct 2019, 8:40 AM
simi sam
simi sam - avatar
20th Oct 2019, 8:40 AM
simi sam
simi sam - avatar
0
As you have done in solo learn
20th Oct 2019, 8:40 AM
simi sam
simi sam - avatar
0
Or u can- int i, arr[5]={25,30,35,40,55}; for (i=0; i<5; i++){ printf("%d", arr[i]); }
26th Dec 2019, 4:08 PM
Sohel Rana
Sohel Rana - avatar