29 September 2012 8 9K Report

My problem regarding the C code is that i want to print the code in the output screen.

For example:

C code:-

#include

main()

{

printf("Hello world");

return 0;

}

But i want to print my output as the same thing which i was written in

the code itself.

My output is look like:

#include

main()

{

printf("Hello world");

return 0;

}

Apart from that i got a solution that by using the printf statement but that is a layman's approach.

In that manner i write a printf statement and within that i write whatever i want.

So, if there is any other technique present then please inform me.

More Salman Beg's questions See All
Similar questions and discussions