Computer Science, asked by kapoorkeekog, 1 year ago

Find the Output after Execution
int main() { int i ={printf("c" "++")}; printf("%d",i); return 0; } Find the output of the Program?


kvnmurty: there seem to be syntax errors ?? which language is this ? please clarify.. are u sure there is no mistake in the question.

Answers

Answered by kvnmurty
3
ans:   3

The two strings   "c"  and  "++"   placed one after another is treated as one string only that is the result of concatenation of the two.

Printf returns the number of characters actually output upto the first null ch encountered.

==
int main() {
    int i = { printf("c" "++") };
    printf("%d",i);
    return 0;
 }
===========
Similar questions