What is the difference b/w main() in C language and main()
in C++.
Answer Posted / sagarika
In C language , main() does not return any value.
Hence there is no need of return type whereas in c++ main
returns the value. if there is no return type we should
specify it by writing the keyword void before main.
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
write a program to display all prime numbers
What are pointers? Why are they used?
How will you print TATA alone from TATA POWER using string copy and concate commands in C?
What are header files and explain what are its uses in c programming?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
What is the explanation for prototype function in c?
What does a pointer variable always consist of?
Can you please explain the difference between malloc() and calloc() function?
What does %d do in c?
How are structure passing and returning implemented?
What is the explanation for modular programming?
Explain what is the advantage of a random access file?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
Explain how do you list a file’s date and time?
Why is main function so important?