wht will be the output for following line of code
Output is def
3+ means that leave first 3 char in the quotes and print the rest.
If we use in the string %d or %c (format specifiers ) the it consider it as 2 seprate char(% and d) not 1.
so if code is
printf(3+"%dabcdef"
Then output will be bcdef not cdef..........
Code:
printf(3+"abcdef");
Output is def
3+ means that leave first 3 char in the quotes and print the rest.
If we use in the string %d or %c (format specifiers ) the it consider it as 2 seprate char(% and d) not 1.
so if code is
printf(3+"%dabcdef"
Then output will be bcdef not cdef..........