Sunday 11 January 2009

What is use of #line directive in c programming language?

Answer: It tells the compiler that next line of source code is at the line number which has been specified by constant in #line directive i.e. it transfer the program control to the line number which has been specified by #line directive. e.g. #line 15 void main() { int a=10; a++; clrscr(); a++; #line 5 printf(“%d”,a); getch(); }   If we will see its intermediate file then before

No comments:

Post a Comment