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
What is difference between structure and union with example?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
What is new line escape sequence?
What's the best way of making my program efficient?
How can I change their mode to binary?
List some basic data types in c?
What are static variables in c?
Why do we use pointer to pointer in c?
How do I get an accurate error status return from system on ms-dos?
Do you have any idea about the use of "auto" keyword?
What is time complexity c?
What is ambagious result in C? explain with an example.
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
What is adt in c programming?
What is class and object in c?