can't we use void main instead of int main in programs | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

can't we use void main instead of int main in programs

#include <iostream> using namespace std; int main() { cout << "Hello world!"; return 0; }

10th Oct 2017, 8:51 AM
arshpreet
arshpreet - avatar
1 Antwort
10th Oct 2017, 9:06 AM
Babak
Babak - avatar