write a C program to print the program itself ?!
Answer Posted / swamy
#include<stdio.h>
#include<conio.h>
int main()
{
FILE * fp = NULL;
char c = '\0';
fp = fopen(__FILE__,"r");
while(!feof(fp))
{
c = fgetc(fp);
printf("%c",c);
}
getch();
}
| Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
Explain what math functions are available for integers? For floating point?
What is the heap in c?
What is the difference between volatile and const volatile?
What is pointer to pointer in c with example?
How can you find the day of the week given the date?
What is c language and why we use it?
What are the modifiers available in c programming language?
Which built-in library function can be used to match a patter from the string?
What is && in c programming?
Explain high-order bytes.
What is the difference between local variable and global variable in c?
How do I read the arrow keys? What about function keys?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
Is exit(status) truly equivalent to returning the same status from main?