+ 4

In C language ,what happens if we dont use #include<stdio.h>

if we dont use <stdio.h>,wt happens

2nd Aug 2017, 2:51 PM
Jahnavi Yeddula
Jahnavi Yeddula - avatar
18 Answers
+ 13
There's a slight chance that Windows will uninstall itself.
2nd Aug 2017, 4:02 PM
Hatsy Rei
Hatsy Rei - avatar
+ 10
I think gets() became obsolete.
2nd Aug 2017, 5:35 PM
Hatsy Rei
Hatsy Rei - avatar
+ 9
Try doing it. And see what happens
2nd Aug 2017, 2:52 PM
Manual
Manual - avatar
+ 6
@Hatsy @Martin Thank you for explaining! Also this is a strange thread I looked into embeding C in C# before and found nothing in the past. The all classes thing in C# does not help either.
2nd Aug 2017, 7:37 PM
Manual
Manual - avatar
+ 3
In C language if we don't include stio.h the compiler will automatically include it... but in c++ it's an error
3rd Aug 2017, 2:02 AM
Shweta Kumari
Shweta Kumari - avatar
+ 2
you can't use stdio functions :p
2nd Aug 2017, 3:26 PM
Andrés04_ve
Andrés04_ve - avatar
+ 2
i saw your code 1. you are in the C Sharp section, you should code in C++ 2. you forgot two semicolons 3. gets and printf are stdio functions and you don't include stdio.h 4. strlen is a function of string.h
2nd Aug 2017, 3:35 PM
Andrés04_ve
Andrés04_ve - avatar
+ 2
@Hatsy lolđŸ˜č
2nd Aug 2017, 4:40 PM
Manual
Manual - avatar
+ 2
C gets(); does not prompt an input on sololearn.
2nd Aug 2017, 4:49 PM
Manual
Manual - avatar
+ 2
you can't do anything related to input output..
2nd Aug 2017, 5:08 PM
Sumita
Sumita - avatar
+ 2
gets () was deprecated, but there is the fgets () function where you can specify the max lenght of the array, you should write stdin to get the input from keyboard, also work with files
2nd Aug 2017, 8:47 PM
Andrés04_ve
Andrés04_ve - avatar
+ 1
really no stdio is just a header file with the standard input/output functions and many other things you can code without stdio, but you can't use its functions
2nd Aug 2017, 3:32 PM
Andrés04_ve
Andrés04_ve - avatar
+ 1
@Sumita printf(); and puts(); compiles, it seems like it is just gets(). gets() does not open the prompt
2nd Aug 2017, 5:21 PM
Manual
Manual - avatar
+ 1
yes @Manual ... you are right
3rd Aug 2017, 1:06 AM
Sumita
Sumita - avatar
+ 1
u cannot be able to use it's functions
21st Jan 2018, 8:32 AM
Naman
Naman - avatar
0
compilation will not be successful and we get errors....is it correct
2nd Aug 2017, 3:28 PM
Jahnavi Yeddula
Jahnavi Yeddula - avatar