write a C program to print the program itself ?!
Answer Posted / abhishek
#include <stdio.h>
static char prog[] = "#include <stdio.h>%c%cstatic char prog[] = %c%s%c;%c%cint main(void)%c{%c printf(prog, 10, 10, 34, prog, 34, 10, 10, 10, 10, 10, 10, 10);%c return 0;%c}%c";
int main(void)
{
printf(prog, 10, 10, 34, prog, 34, 10, 10, 10, 10, 10, 10, 10);
return 0;
}
| Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
What are the 5 types of organizational structures?
What is hashing in c language?
How do you define a function?
What are the types of bitwise operator?
What are preprocessor directives in c?
Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer
What are type modifiers in c?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Can a local variable be volatile in c?
What is the newline escape sequence?
What is boolean in c?
What is the mean of function?
What is union and structure?
What is scope rule of function in c?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.