C PROGRAM TO PRINT SOURCE PROGRAM NAME
1 2 3 4 5 6 7 8 9 |
#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(); } |