EX: pgm
#include<stdio.h>
main()
{
printf("haiii");
}
Header file:
(1) contains the function(printf) declaration
(2) during preprocessing, the printf function is replaced by the function declaration
Library file :
(1) contains the function(printf) definition
(2) during linking, the function declaration is replaced with the function definition.obviously, everything will be in object while linking
Copyright © 2026 eLLeNow.com All Rights Reserved.