0

How can void b used insted of int

i want to use void instead of int main how can i use

25th Oct 2018, 6:17 AM
Divya
2 Antworten
+ 3
But why you want main procedure to use void? I'm confused (??) C++ standard had defined the main procedure to use int as return type, why need to change?
25th Oct 2018, 7:47 AM
Ipang
+ 1
#include <iostream> int main() { cout<<"hello "; return 0; } how i can use void in this
25th Oct 2018, 6:19 AM
Divya