0

Difference between header files "stdio.h"and " iostream"

What is best to choose and what are the features of these two header files. can we replace them in one another place?

17th Jul 2024, 5:49 AM
Azaz Irshad
Azaz Irshad - avatar
5 Answers
+ 4
<stdio.h> is a C header (can also be used in C++, commonly known as <cstdio>) which provides input/output functionalities through the use of printf() and scanf(). <iostream> is a C++ header file which provides input stream and output stream objects, e.g. std::cout, std::cin.
17th Jul 2024, 12:36 PM
Sreeju
Sreeju - avatar
+ 4
Stdio.h is library in c and iosream is library in cplusplus. Choose studio in c language and choose iostream in cplusplus.
17th Jul 2024, 6:00 AM
Maryam Ansari
Maryam Ansari - avatar
17th Jul 2024, 6:42 AM
R🍁🇼🇳
R🍁🇼🇳 - avatar
0
Both header files contains input output functions
17th Jul 2024, 6:01 AM
Maryam Ansari
Maryam Ansari - avatar
0
You can not replace them as both are for different languages
17th Jul 2024, 6:01 AM
Maryam Ansari
Maryam Ansari - avatar