Answer the question
In order to leave comments, you need to log in
Do preprocessors insert the whole file through #include or partially?
If you write down and use only one printf function with the first line of code , then the rest of the scanf-type functions from there will also be added to the program code, or only those functions that were used in the program? Are preprocessors "stupid" and shove all the code from the included header files, or just the one that the program needs after the linker inserts ? If so, is there a way to enable only those functions that you need? To minimize the weight of the program.
PS I.e. rephrasing the question, it would sound like this: is it possible to selectively include only the necessary functions from the included libraries?
Answer the question
In order to leave comments, you need to log in
Are preprocessors "stupid" and shove all the code from the included header files, or only the one that the program needs after the linker inserts?
PS I.e. rephrasing the question, it would sound like this: is it possible to selectively include only the necessary functions from the included libraries?
If the first line of code is written#include <stdio.h>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question