C Programming Exercise - Program to Display Its Own Source Code as Output

preview_player
Показать описание
In this c / cpp programming language video tutorial / lecture for beginners video series, you will learn how to write a c / c++ program which produces its own source code as output.

You will learn how to use __FILE__ macro to get the current working file name and how to read and printout the contents of the opened file in detail with example.

Learn Programming in HINDI at our youtube channel

Catch us on SocialMedia
Рекомендации по теме
Комментарии
Автор

good explanation, if you paste the source code in the description of your every tutorial that would be great too, i've just downloaded your entire c programming playlist, thanks mate :-)

vinvinay
Автор

can i use this code :
system("cd /*my project directory*/");
system("type main.c");

i think using the command prompt should be good :)

hachihao
Автор

Sir, Which compiler do you use It looks very user

shakti