write a C program to print the program itself ?!
Answer Posted / joyab
#include <stdio.h>
int main()
{
char a[] = "int main(){char a[] = %c%s%c; char b = '%c'; printf(a,b,a,b,b);}";
char b = '"';
printf(a,b,a,b,b);
}
| Is This Answer Correct ? | 9 Yes | 9 No |
Post New Answer View All Answers
What is a union?
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
What is static memory allocation?
Explain what is the difference between a string and an array?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
What is strcmp in c?
How many bytes are occupied by near, far and huge pointers (dos)?
What does s c mean on snapchat?
Explain what is output redirection?
What are the rules for the identifier?
What is difference between constant pointer and constant variable?
Which is more efficient, a switch statement or an if else chain?
How can you return multiple values from a function?
What is assert and when would I use it?