+ 3
Can sameone help me to understand this code plz ↓↓
char str[]="%d %c", arr[]="Sololearn"; printf(str, 0[arr], 2[arr+3]); //output:83 e //I catch nothing the second line of print
5 odpowiedzi
+ 9
I think the above explanation is sufficient, but I'd like to add the followings
arr+3 is a kind of pointer operation, please try this code for your understanding
char arr[]="Sololearn";
printf("%s\n",arr+0); // => Sololearn
printf("%s\n",arr+1); // => ololearn
printf("%s\n",arr+2); // => lolearn
printf("%s\n",arr+3); // => olearn
+ 2
Satoshi Hirano need your help sir
+ 2
Thanks for your help
0
Hello