0
main(void) { court<<"hi"; } //output is hi what does it mean 1st line in program &diff b/w above and void main() is..?? pls ans.. me
5 Respostas
+ 1
in the first line main(void) the main is the function. writing void means it is not receiving any arguments. and void main means main () function is not returning any value. the above snippet which you have written has another mistake that is main should have a return type and a return statement inside the braces.
+ 1
understood?
+ 1
Thnx
0
it will be cout not court.
0
ya its typing mistake..pls clarify to above program