Sunday, 17 July 2011

Program to print line number and filename

CODE:

#include<stdio.h>
#include<conio.h>


void main()
{
 clrscr();
 printf("Line %d of %s",__LINE__,__FILE__);
 getch();
}


OUTPUT:
Line 7 of ..\..\CPROGRAM.C

No comments:

Post a Comment