+ 2

when should i use #include<stdio.h>

29th May 2018, 6:42 AM
SD Showrov
SD Showrov - avatar
4 Antworten
+ 3
stdio.h is the header file used for standard input and output operations. Without including this header file, you can't possibly display results on the output window. edit: This's for C language.
29th May 2018, 6:53 AM
Rahul George
Rahul George - avatar
+ 3
This header is called <cstdio> instead of <stdio.h> in C++. It can be useful, but please look at the <iostream> header if you're not familiar with it.
29th May 2018, 11:35 AM
Timon Paßlick
+ 1
It tells the compiler to use functions, structures, macros and etc from file sdtio.h, which represents a part of glibc(or whatever is the standart C library you got). Compiler also adds record to the output executable "to-link list", that it should be linked to standart C library.
29th May 2018, 6:58 AM
NaiVe🌺
NaiVe🌺 - avatar
0
you shouldn‘t use it in c++ use #include <iostream> instead
29th May 2018, 8:44 AM
Max
Max - avatar