Explain the output of the following code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Explain the output of the following code?

https://code.sololearn.com/c6AfcRe88WP2/?ref=app

31st Jul 2019, 4:53 PM
Govind Kumar
Govind Kumar - avatar
3 Answers
+ 4
str = H(First character of the array)/(zero index) strlen returns length of string which is 15 Subtracting 5 will result in 10 So you are adding 0 + 10 = 10 printf will start printing from 10th index i.e 'e' and then onwards till the end
31st Jul 2019, 7:41 PM
blACk sh4d0w
blACk sh4d0w - avatar
+ 1
nAutAxH AhmAd Thanks, good explanation.👍👍👍
1st Aug 2019, 12:19 AM
Govind Kumar
Govind Kumar - avatar
0
You strip the first 10 Characters of.
31st Jul 2019, 5:13 PM
Loeschzwerg