hi is there any way by which we can write a program that displays its own source code???????:?::-/

Recommended Answers

All 3 Replies

If you know such things are called 'quines', can you use google for the rest?

hi is there any way by which we can write a program that displays its own source code???????:?::-/

Of course, just open the *.c file, read each line and print it on the screen.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.