Saturday 22 January 2011

#line directive in c





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.

Example:




#include

#line 15

int main(){

    int a=10;

    a++;

    a++;

    #line 5

    printf("%d",a);

}





If we will see its intermediate

No comments:

Post a Comment