C program to display own source code as output

Home Forums C Programming C program to display own source code as output

This topic contains 5 replies, has 4 voices, and was last updated by  Rashmi singh 10 years, 1 month ago.

  • Author
    Posts
  • #2030

    devangana
    Member

    Hi All,

    Please help me to write a C program that outputs its own source code.

    With thanks and regards,

    Sandia

  • #3274

    yeswanth
    Member

    i am not ab;e to write whole program at this time but i give you the clue that you should use file handling and open your file on which you are writting the program

  • #3275

    yeswanth
    Member

    i think you should use file handling and open the file which you are making it will show your file on compiling the program

  • #3276

    MYFILE.CPP

  • #3277

    Rashmi singh
    Member
  • #3278

    Rashmi singh
    Member

    Reply: C program to display own source code as output

    a simple way of doing this is Using “SYSTEM CALLS”

You must be logged in to reply to this topic.