ccplusplus.com
Learn C, C++ Concepts
Sunday, March 25, 2012
using #line in c
/******************************************************************* * File : hash-line.c * Author : Saurabh Gupta * Description : using #line in c * Date revised : AM 10:57 25 March 2012 * Source : http://www.ccplusplus.com/p/c.html * Note : *******************************************************************/ #include
#line 100 /* reset the line counter */ int main(void) /* line 100 */ { /* line 101 */ printf ("%d\n", __LINE__); /* line 102 */ return 0; } /* * OUTPUT * [sgupta@rhel6x64 c]$ gcc hash-line.c -o hash-line [sgupta@rhel6x64 c]$ ./hash-line 103 [sgupta@rhel6x64 c]$ */
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment