See the following code:
int i={
printf("c" "++")
};
it prints c++ and returns 3 to i. how it is assigning 3 to i? need explanation!
See the following code:
int i={
printf("c" "++")
};
it prints c++ and returns 3 to i. how it is assigning 3 to i? need explanation!
printf returns the number of bytes written to stdout. "c++" is exactly three bytes long (not counting the null-terminator).
By the way, you really don't need to use the curly braces, you can simply do int i=printf("c" "++");.