Write C program

N

Neelesh Bodas

Hello friends.

"Write a C program such that the output is source code itself"

#include <iostream>
int main()
{
std::cout << "source code itself" << std::endl;
}


Alternatively, google quine.

-N
 
N

Neelesh Bodas

#include <iostream>
int main()
{
std::cout << "source code itself" << std::endl;

}

Alternatively, google quine.

-N

BTW, this is a C++ program. For a C program, contact appropriate
newsgroup.

-N
 
J

jasonwthompson

Hello friends.

"Write a C program such that the output is source code itself"

Not sure why this is important. However, one can simply write a
program that opens up the source file and outputs it.
 
D

Default User

Not sure why this is important. However, one can simply write a
program that opens up the source file and outputs it.


A solution that works rather poorly when the source file is not
available.




Brian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,201
Messages
2,571,052
Members
47,656
Latest member
rickwatson

Latest Threads

Top