How can a program be made to print the line number where an error occurs?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

What will happen when freeing memory twice

2 Answers  


write a program to display all prime numbers

0 Answers  


The operation of a stair case switch best explains the a) or operation b) and operation c)exclusive nor operation d)exclusive or operation Which of the following is/are syntactically correct? a) for(); b) for(;); c) for(,); d) for(;;);

1 Answers   HCL, Public Service Commission,


what is the difference between postfix and prefix unary increment operators?

3 Answers  


who is the father of c

4 Answers   Infosys,






main() { static int ivar=5; printf("%d",ivar--); if(ivar) main(); }

3 Answers   CSC,


show how link list can be used to repersent the following polynomial i) 5x+2

0 Answers   CBSE,


WHAT WILL BE OUTPUT OF BELOW CODE . . AND PLEASE EXPLAIN HOW IT COME .. #include<stdio.h> #include<conio.h> void main() { int k=20; printf("%d%d%d%d",k,k++,++k,k); getch(); }

25 Answers  


f(x,y,z) { y = y+1; z = z+x; } main() { int a,b; a = 2 b = 2; f(a+b,a,a); print a; } what is the value of 'a' printed

5 Answers  


FIND THE OUTPUT IF THE INPUT IS 5 5.75 void main() { int i=1; float f=2.25; scanf("%d%f",&i,&f); printf("%d %f",,i,f); } ANSWER IS 5 AND 2.25 WHY?

4 Answers   Wipro,


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

0 Answers  


In C program, at end of the program we will give as "return 0" and "return 1", what they indicate? Is it mandatory to specify them?

5 Answers  


Categories