Coding Tricks
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment