5 odpowiedzi
+ 6
printf ("%c%c",(*(a[0])+9),*(*(a+0)+5)); First character- a[0] -> dont walk in front of me *(a[0] ) -> d (*(a[0])+9) -> d+9 -> efghijkl[m] The next character- *(a+0) -> d *(*(a+0)+5) -> d+5 ont [w] Hence the output mw
20th Jan 2020, 2:15 PM
Avinesh
Avinesh - avatar
+ 4
a = {"dont walk in front of me", "i walk before you"}; printf ("%c%c",(*(a[0])+9),*(*(a+0)+5)); (*(a[0]) + 9) dereference the first character from first string (letter 'd'), then increment that by 9, so it becomes 'm'. *(*(a + 0) + 5)) dereference the 6th character (index 5) from the first string (letter 'w').
20th Jan 2020, 2:12 PM
Ipang
+ 1
Thanks bro
20th Jan 2020, 2:13 PM
Sangi_Mangi
Sangi_Mangi - avatar
+ 1
Ok bro
20th Jan 2020, 3:00 PM
Sangi_Mangi
Sangi_Mangi - avatar
0
Welcome bro 👌
20th Jan 2020, 2:14 PM
Ipang