Tanvi
asked

Expert
Abhay Jajodia answered
Hi Tanvi,
We use #include because it gives your program access to standard input and output functions like printf() and scanf().
Example:
#include
int main() {
printf("Hello");
return 0;
}
Without stdio.h, the compiler may not recognize printf() properly.
If you have more questions, I am here to help 😊
C
This question was asked as part of the Learn C Programming course.
Our Experts
Sudip BhandariHead of Growth/Marketing
Apekchhya ShresthaSenior Product Manager
Kelish RaiTechnical Content Writer
Abhilekh GautamSystem Engineer
Palistha SinghTechnical Content Writer
Sarthak BaralSenior Content Editor
Saujanya Poudel
Abhay Jajodia
Nisha SharmaTechnical Content Writer
Udayan ShakyaTechnical Content Writer