0

Simply if i say... Then int main() Works but intmain() does not... Why??

5th Aug 2016, 3:00 AM
Prabhat Chandra Dwivedi
Prabhat Chandra Dwivedi - avatar
6 ответов
0
main() is a function that the compiler calls immediately. intmain() is not a function (unless you define it), so it wouldn't run.
6th Aug 2016, 2:15 PM
Samuel Neo
Samuel Neo - avatar
+ 1
He asks what is the difference between cout<<"dsds"; and cout << "dsds"; There is no difference, its just easier to read and the code looks cleaner.
5th Aug 2016, 12:13 PM
Yoan Atanasov
Yoan Atanasov - avatar
0
Please post code as your explanations is hard to understand.
5th Aug 2016, 12:10 PM
Null Void
Null Void - avatar
0
he said it does not run, he is not talking about that yoan
5th Aug 2016, 12:15 PM
Null Void
Null Void - avatar
0
It doesnt run when he ignores the space between int main()
5th Aug 2016, 12:17 PM
Yoan Atanasov
Yoan Atanasov - avatar
0
if he is writing intmain(), its because he needs to declare a data type for it and also it has to be named main for the compiler to know its the programs entry.
5th Aug 2016, 12:34 PM
Null Void
Null Void - avatar