C Programming - Input / Output - Discussion

Discussion Forum : Input / Output - Find Output of Program (Q.No. 3)
3.
What will be the output of the program ?
#include<stdio.h>
char *str = "char *str = %c%s%c; main(){ printf(str, 34, str, 34);}";

int main()
{
    printf(str, 34, str, 34);
    return 0;
}
char *str = "char *str = %c%s%c; main(){ printf(str, 34, str, 34);}"; main(){ printf(str, 34, str, 34);}
char *str = %c%s%c; main(){ printf(str, 34, str, 34);}
No output
Error in program
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
28 comments Page 3 of 3.

MASS said:   8 years ago
Awesome explanation, thank you all.

Sharath said:   1 decade ago
Can anyone explain this please?

Reddy said:   4 years ago
What is it? Please explain.
(1)

Adi said:   9 years ago
Thank you @Vishnupriya.

Vishalakshi said:   9 years ago
Thanks @Vishnupriya.

HARISH said:   8 years ago
Thanks @Kavyashree.

Anne said:   5 years ago
Thank you @Krishu.
(1)

Sankar said:   1 decade ago
Nice program.


Post your comments here:

Your comments will be displayed after verification.