This website completely moved to new platform. For latest content, visit www.programmingposts.com

Search this Site

14 Apr 2013

C PROGRAM TO PRINT SOURCE PROGRAM NAME


#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();
}