write a C program to print the program itself ?!
Answer Posted / hillel
#include<fstream>
void main()
{
std::ifstream is(__FILE__);
while(!is.eof())
printf("%c", is.get());
is.close();
}
| Is This Answer Correct ? | 5 Yes | 7 No |
Post New Answer View All Answers
is it possible to create your own header files?
What is uint8 in c?
Why clrscr is used after variable declaration?
How can you read a directory in a C program?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
What is string length in c?
What are different storage class specifiers in c?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
What the advantages of using Unions?
what do the 'c' and 'v' in argc and argv stand for?
What is || operator and how does it function in a program?
What are dangling pointers? How are dangling pointers different from memory leaks?
Is return a keyword in c?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
What is 2 d array in c?