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
Why main function is special give two reasons?
Explain what is a 'locale'?
What is data structure in c language?
What are the uses of null pointers?
What does s c mean on snapchat?
What is the best style for code layout in c?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
What is a struct c#?
Why is c so popular?
What are dangling pointers in c?
Wt are the Buses in C Language
In a switch statement, what will happen if a break statement is omitted?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
write a proram to reverse the string using switch case?
write a program to concatenation the string using switch case?