+ 2

Why do the output comes "World" after execute of following program?(explain in brief)

#include <stdio.h> int main() { printf(6+ "Hello World"); return 0; }

26th Aug 2019, 5:12 PM
PRINCE KUMAR
5 Respuestas
+ 5
Pointer to first char is moved forward of six memory addresses (in this case, six chars), so it outputs letters from 7th to end of the string
26th Aug 2019, 5:29 PM
Paolo De Nictolis
Paolo De Nictolis - avatar
+ 2
Prince Kumar the instruction moves six chars forward the string
26th Aug 2019, 7:42 PM
Paolo De Nictolis
Paolo De Nictolis - avatar
+ 1
"Hello world" is a string, that is actually a char* type. Therefore this is equivalent to: char* str = "Hello world"; Printf(%s,6+str);
26th Aug 2019, 5:34 PM
daniel
daniel - avatar
+ 1
When I use - operator on place of + operator so it's show an error messgae
26th Aug 2019, 5:39 PM
PRINCE KUMAR
+ 1
Paolo De Nictolis I am unable to understand please sir explain in detail as I am new in c
26th Aug 2019, 5:44 PM
PRINCE KUMAR