@Sayan Bose
Lexical analysis of header file is not done
WHY? is there any standard reference?
@Shaik
https://gateoverflow.in/202250/cd-lexical-analysis-token
it is true
@srestha mam
then how the printf and scanf or some other can resolve? ( i mean at what phase of compiler )
References to printf and scanf are actually resolved by the linker by providing the object code for printf and scanf and other library functions.
In the preprocessing phase only function prototype are included in source code .
So the actual resolving done by linker .
That linking again of two types--
@sudharshan We can't say that
#include<stdio.h>
will have 0 tokens because in the preprocessor stage this header would be expanded to its actual content.
And the number of tokens would be huge !!!
64.3k questions
77.9k answers
244k comments
80.0k users