Tell me the function of # include<iostream> and int main ( ). | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Tell me the function of # include<iostream> and int main ( ).

10th Sep 2016, 5:33 PM
Arbaaz Khan
Arbaaz Khan - avatar
3 Answers
0
# tells the pre processor to include include the contents of iostream library.. int main is the main function in which operations are done
10th Sep 2016, 7:18 PM
Ali Haider
Ali Haider - avatar
0
int main(). is the only fiction which is recognised and run by the compiler without int main () basic program won't run.
11th Sep 2016, 2:22 AM
Shrinivas Deshpande
Shrinivas Deshpande - avatar
0
int main() is a function while #include<iostream.h> is a header file which is used for the execution of certain statements such as cin , cout , etc.
11th Sep 2016, 7:20 AM
Programmer