• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

C Quiz - 110 | Question 3

Typically, library header files in C (e.g. stdio.h) contain not only declaration of functions and macro definitions but they contain definition of user defined data types (e.g. struct, union etc), typedefs and definition of global variables as well. So if we include the same header file more than once in a C program, it would result in compile issue because re-definition of many of the constructs of the header file would happen. So it means the following program will give compile error. 
 

C
#include “stdio.h”
#include “stdio.h”
#include “stdio.h”

int main()
{
 printf(Whether this statement would be printed?)
 return 0;
}

(A)

TRUE
 

(B)

FALSE
 

Answer

Please comment below if you find anything wrong in the above post
Feeling lost in the world of random DSA topics, wasting time without progress? It's time for a change! Join our DSA course, where we'll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 geeks!

Last Updated :
Share your thoughts in the comments