+ 1

Why should we mention 'int' before main() function ? What is the use of it?

22nd Jul 2020, 4:55 AM
Jarpula Aravind
Jarpula Aravind - avatar
4 ответов
+ 4
You can also write void main () here void represent void will not return any value and int main represent that it will return int value .
22nd Jul 2020, 5:58 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 3
It tells that the function would return an integer value when called.
22nd Jul 2020, 8:43 AM
Seb TheS
Seb TheS - avatar
+ 2
Int is. A datatype Int main is main function which can u write an return value Int main (){ return 0; }
22nd Jul 2020, 4:59 AM
Sâgærāvürï
Sâgærāvürï - avatar
0
Got..it Thanks.
22nd Jul 2020, 5:01 AM
Jarpula Aravind
Jarpula Aravind - avatar