#line Directive In C/C++ Language With Program
#line Directive In C/C++ Language With Program
What is #line Directive?
The #line directive tells the preprocessor to change the compiler’s internally stored line number and filename to a given line number and filename.
Syntax :
#line
digit-sequence [“filename”]
Code :
#line 13 //You can take any constant value after #line
void main()
{
int n;
clrscr();
printf(“Enter the value of n:”);
scanf(“%d”,&n);
n++;
#line 5 “file name”
printf(…
View On WordPress








