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
What are structures and unions? State differencves between them.
What are c identifiers?
What is use of integral promotions in c?
What does int main () mean?
What are the differences between new and malloc in C?
Explain what is the concatenation operator?
What are the advantage of c language?
Why c language is called c?
What is the benefit of using const for declaring constants?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
How does struct work in c?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
Explain the difference between the local variable and global variable in c?
Write a program to print fibonacci series without using recursion?