Why do we use the header file in C.
ORCode:#include<stdio.h> void main() { printf("Hello"); }
both returns same output then why do we use #include<stdio.h>Code:void main() { printf("Hello"); }
and if include file is optional then how compiler works