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

1st Aug 2016, 5:39 PM
Santhosha S R
Santhosha  S R - avatar
5 odpowiedzi
+ 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.
1st Aug 2016, 6:56 PM
Shubhranil Chakraborty
Shubhranil Chakraborty - avatar
+ 1
understood?
1st Aug 2016, 6:57 PM
Shubhranil Chakraborty
Shubhranil Chakraborty - avatar
+ 1
Thnx
1st Aug 2016, 7:07 PM
Santhosha S R
Santhosha  S R - avatar
0
it will be cout not court.
1st Aug 2016, 6:03 PM
Shubhranil Chakraborty
Shubhranil Chakraborty - avatar
0
ya its typing mistake..pls clarify to above program
1st Aug 2016, 6:07 PM
Santhosha S R
Santhosha  S R - avatar