0 votes
495 views
in C program by (1.7k points)
edited

 Why is it that not all header files are declared in every C program?

1 Answer

0 votes
by (1.7k points)
selected by
 
Best answer
The choice of declaring a header file at the top of each C program would depend on what commands/functions you will be using in that program. Since each header file contains different function definitions and prototype, you would be using only those header files that would contain the functions you will need. Declaring all header files in every program would only increase the overall file size and load of the program, and is not considered a good programming style.
asked May 14, 2022 in C program by (1.7k points)
edited Jun 29, 2023
when is the “void” keyword used in a function?

Related questions

0 votes
1 answer 548 views
0 votes
0 answers 306 views
0 votes
1 answer 376 views
asked May 15, 2022 in C program by Doubtly (98.9k points)
0 votes
1 answer 377 views
asked May 15, 2022 in C program by Doubtly (98.9k points)
0 votes
1 answer 432 views
0 votes
1 answer 468 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

Recent Badges

Doubtly Earned a badge
Doubtly Earned a badge
Doubtly Earned a badge

5.7k questions

5.1k answers

108 comments

650 users

...