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
Can variables be declared anywhere in c?
What is bubble sort technique in c?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
How to write a code for reverse of string without using string functions?
Why is sizeof () an operator and not a function?
largest Of three Number using without if condition?
Explain zero based addressing.
about c language
What is pointer & why it is used?
Tell me can the size of an array be declared at runtime?
What is meant by realloc()?
Explain the difference between the local variable and global variable in c?
Explain the use of 'auto' keyword in c programming?
What is pointer and structure in c?
What are file streams?