0% found this document useful (0 votes)
118 views

What Is #Include ?: 17 Answers

#include<stdio.h> is a preprocessor statement that tells the compiler to insert the contents of the stdio.h header file. This header file contains declarations for standard input and output functions like printf(), scanf(), etc. To use these predefined functions, their header file must be included. The #include statement and <> brackets indicate to the compiler which header file is being included.

Uploaded by

api-325971962
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
118 views

What Is #Include ?: 17 Answers

#include<stdio.h> is a preprocessor statement that tells the compiler to insert the contents of the stdio.h header file. This header file contains declarations for standard input and output functions like printf(), scanf(), etc. To use these predefined functions, their header file must be included. The #include statement and <> brackets indicate to the compiler which header file is being included.

Uploaded by

api-325971962
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

8/6/2016

Whatis#include<stdio.h>?Quora
SignIn

Searchforquestions,people,andtopics

C(programminglanguage)

ComputerProgramming

Whatis#include<stdio.h>?
17Answers

RelatedQuestions
InallofCprogrammingIput#include<stdio.h>inthe
top,butIamnotsurewhatthismeansexactly.I
GoogleditandIfoundthatstdio.hi...
Whatisthehforin#include<stdio.h>?

NeeleshRoy,Designer,CoderandTownhall8.
49.1kViews

#include<stdio.h>isastatementwhichtellsthecompilertoinsertthecontentsofstdioat
thatparticularplace.
Whatarethecontents?readon!
InC/C++weusesomefunctionslikeprintf(),scanf(),cout,cin.
Dowedefineit?No.
Thesefunctionsarenotdefinedbytheprogrammer.Thesefunctionsarealreadydefined
insidethelanguagelibrary.Tousethesekindsofpredefinedfunctions,wehavetoinclude
thecorrespondingheaderfile.

Howmanylinesofcodedoesthe#include<stdio.h>
contain?
Whyis#putinfrontofinclude<stdio.h>inc?
Whyisasemicolonnotusedafter#include<stdio.h>
inC?
Whenweopenanew.Cfilethattime,thestatement
#include<stdio.h>#include<conio.h>intmain()
{getch()return0}shouldbedisplayedin...
Whatisbasicdifferentbetween#includeand
#include"stdio.h"?

checkthisout:
Asyouknow,
printf()isastandardoutputfunction.
scanf()isastandardinputfunction.
therefore,
standardinputandstandardoutput.
standardinputandoutput.
stdio
thisisaheaderfile,therefore,
stdio.h
and,wehavetoincludeitintheprogram,hence,
#include<stdio.h>

Isstdio.husedinCPP?Why?
Whatisthedifferencebetween#include<stdio.h>and
#include"stdio.h"?
InTurboC,itisnecessarytoincludeaheaderfilelike
stdio.hbutinCode::Blocksitisnot.Whatisthe
reason?Whatisthedifferencebe...

Similarly,ifwewanttousesquarerootfunctionwhichissqrt(),Wemust#includethe
<math.h>fileorifwewantsomecomplexnumberarithmetic,wemust#include
<complex.h>inC.
C++StandardLibraryheaderfiles
CStandardLibraryheaderfiles
Ifyouwantsomemoreexplanation,commentbelow.
WrittenJan30,2015ViewUpvotes

RelatedQuestions
MoreAnswersBelow
InallofCprogrammingIput#include<stdio.h>inthetop,butIamnotsurewhatthismeans
exactly.IGoogleditandIfoundthatstdio.hi...
Whatisthehforin#include<stdio.h>?
Howmanylinesofcodedoesthe#include<stdio.h>contain?
Whyis#putinfrontofinclude<stdio.h>inc?
Whyisasemicolonnotusedafter#include<stdio.h>inC?

GobindDeepSingh,ProfessionalC/C++Programmer
15.7kViews

It'sreallysimple.
#includeiswhatisknownasa"preprocessor".Asthenamesuggests,itisbasicallypre
processedbeforethecode.Thesepreprocessorstatementsarecompiledbeforeany
othercodeinyourscript.
Nowwhatisiostream?
Iostreamwhisatisknowasa"headerfile".Aheaderfileconsistsofvariouspretty
definedfunctionsthatmakeyourjobasaprogrammerreallyeasyandallowyoutomake
alotmorecomplexcode.ThereisawholelibraryIofheaderfilesthatc/c++havetooffer.

https://www.quora.com/Whatisincludestdioh

1/3

8/6/2016

Whatis#include<stdio.h>?Quora

Searchforquestions,people,andtopics
Alsoonelastthingthatremainsis<>i.ebrackets.Thesetellthecompilerwhatfileisto
accessedorcompiledaccordingtothegivenpreprocessor.

SignIn

Hopeithelps!
HappyCoding!
WrittenSep9,2015ViewUpvotes

PavanKumarDittakavi,Icode.
8.3kViews

ThesamereasonwhyyouhavetoputinyouroldSIMcardinyourNEWPhonetoget
thosecontacts.ThesecontactsareinyourSIMcard.Similarytherearehelllotof
methods/functionssegregatedintodifferentlibraries.Dependingonyouruse,you'add'
thelibrarynametoyourprogram.Thenyourprogramcanusethosemethodswithout
havingtorecreatethem[recreatecontacts...].
WrittenSep2,2015ViewUpvotes

WitoldJaniszewski,CprogrammersinceTurboC
7.1kViews

stdio.hstandardinput/outputheader
Youshoulduseitbecause:
1.Youwanttohaveinputandoutputfromprogramright?Thenusewhatis
recommendedstdio.h
2.Youcandoitonyourownbutitisawasteoftimeessentially.Allprogramsneedsome
formofI/O

Notethatthereareprogramsthatdonothavestdio.hbutthatareratherembedded
softwarethathavecustomI/O.
Alsowhenprogrammingforlet'ssayWindowsyoucanusealternativeI/Ofacilities
providedbysystemitself.
WrittenSep4,2015ViewUpvotesAnswerrequestedbyRabbyMahmud

GarimaGupta,Keenlearner,musiclover,thinkingidiot,VPFepsi,successfully
placedengineer
12.3kViews

#include<stdio.h>isawaytoincludeheaderfileinCprograminglanguage.
#isknownascompilerdirective.Headerfilearethefileswithextension.handthey
containinbuiltfunctionssuchasprintf,strlen,abs,etc.stdio.hstandsforstandardinput
outputanditcontainsfunctionssuchasscanf,printf,gets,puts,etc.
WrittenFeb9,2015ViewUpvotes

RelatedQuestions
Whenweopenanew.Cfilethattime,thestatement#include<stdio.h>#include<conio.h>int
main(){getch()return0}shouldbedisplayedin...
Whatisbasicdifferentbetween#includeand#include"stdio.h"?
Isstdio.husedinCPP?Why?
Whatisthedifferencebetween#include<stdio.h>and#include"stdio.h"?
InTurboC,itisnecessarytoincludeaheaderfilelikestdio.hbutinCode::Blocksitisnot.
Whatisthereason?Whatisthedifferencebe...
Explainexecutionofthefollowingcodestepbystepandshowthefinaloutput#include<
stdio.h>voiddisplay(int)intmain(){intx=4...
Whyweuseonlystdio.hbeforestartingaprogram?
Whatis"#include"inC/C++?
Whatisthedifferencebetween<cstdio.h>and<stdio.h>?
Whatisthedifferencebetweendeclaringaheaderfileas'#include"header.h"'and
"#include<header.h>"?
Whatisthedifferencebetween#include<cxxx>and<xxx.h>headerfiles?
Whydoweuse<>tagsin#include<stdio.h>?

https://www.quora.com/Whatisincludestdioh

2/3

8/6/2016

Whatis#include<stdio.h>?Quora

Code:#include<iostream>#include<conio.h>usingnamespacestdintmain(){intaint
&b=ab=10cout<<a<<endlint*c=&a*c=20cout<<a}...
Whereisthefunctionprintf()defined?Theheaderfilestdio.hjustcontainsthedeclaration.
Whatdoesanexpressioninvolvingmultiplepost/predecrement/incrementoperators
evaluatetoinCandC++?

TopStories
Whataresomeofthebiggestlies
evertold?
DarylTew,Historyenthusiast
58.8kViewsMostViewedWriterin
Historywith240+answers

Whatarethebiggestfacepalm
momentsyouhaveever
experienced?
GwenSawchuk,Citizenfromtheback
ofbeyond
6.1kViewsGwenhas30+answersin
ExperiencesinLife

ReadMore

Howaboutthebiggestwhitelietoldbythe

ReadMore

Iwaschattingwithmygoodfriend

U.S.Politicsin2015:Doesthe
RepublicanPartyhaveanimage
problem?Ifso,howcanwefixit?
Ifnot,howdowereachoutto
moreAmericans?
BarryHampe,registeredvoter
5.5kViewsBarryhas300+answersin
PoliticsoftheUnitedStatesofAmerica

Ohsure!AndIsaythatasa50yearlong
Republican,whofinallyleftin2006.They've
spentthepast35yearsinbedwiththe
bumperstickerChristians.Notagoodimage
excepttootherbumperstickerChristians.
TheyhavelettheTeaPartyadvocatesturn
themintothepartyof"no."Noplans,no
ReadMore
programs,nopolicies,nobudgets,no
confirmations,noreasonablecandidates.

Sitemap # A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
AboutCareersPrivacyTermsContact

https://www.quora.com/Whatisincludestdioh

3/3

You might also like