#include<stdio.h>
main(int argc, char *argv[])
{
	char *p=argv[0];
	printf("\n *** C PROGRAMS BLOG ***");
	printf("\n >>> C PROGRAM TO PRINT NAME OF SOURCE PROGRAM <<< \n");
	printf("\n Program name is :  %s ",p);
	getch();
}
C Program Name output
Sample Output

Leave a Reply

Your email address will not be published. Required fields are marked *