#include"stdio.h"
char *program=”#include
void main()
{
printf(program,10,34,program,34,10,10,10,10);
}
THE LOGIC OF THIS PROGRAM LIES IN THE SYNTAX OF
"printf();"
YOU CAN CHECK IT OUT ON TURBO C BY JUST OPENING TURBO C AND RIGHT CLICKING THE MOUSE.
HERE WHEN WE WRITE
"printf(program,10,34,program,34,10,10,10,10);"
WE CALL THE "program" VARIABLE THAT WE DECLARE AS GLOBAL AND
10 WILL CALL %c IN "*program"
AND
34 WILL ALSO CALL %c IN "*program"
AND
%s WILL CALL THE "*program"
AND THAT IS HOW THE PROGRAM WORKS.-RAJA GHOSH
No comments:
Post a Comment