What happens if header file is included twice?



What happens if header file is included twice?..

Answer / Girja Shankar Vishwakarma

Including a header file more than once can result in duplicate symbol errors or redundant code. To avoid this, you should use include guards.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Does free set pointer to null?

1 Answers  


write a program for size of a data type without using sizeof() operator?

22 Answers   HCL, IBM,


when i declare as: void main() { clrscr(); int a=10; printf("%d",a) } my problem that why generate a error in above programs. please tell me answer seriously .

4 Answers  


When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.

1 Answers   HCL,


What is volatile variable in c with example?

1 Answers  


main() { printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3)); } wat is the o/p and how?

12 Answers   Tech Mahindra,


4) Write a program that takes a 5 digit number and calculates 2 power that number and prints it. i have done maximum par but i m findind problem in the commented area. please help...

3 Answers  


sir i got 146 correct question & i have also the advantage of height so will they consider my marks as 146+3=149.can any body tell me how they consider my height marks.

1 Answers  


main difference between c and c++ language

1 Answers  


Mention four important string handling functions in c languages .

1 Answers  


How do you convert strings to numbers in C?

0 Answers  


What is the hardest programming language?

1 Answers  


Categories