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
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
How can you increase the allowable number of simultaneously open files?
What are the 5 data types?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
What is sizeof in c?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
What is the difference between struct and union in C?
What is the purpose of main( ) in c language?
What is New modifiers?
What does void main () mean?
What is the sizeof () a pointer?
What is the heap in c?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
Explain what does the format %10.2 mean when included in a printf statement?
Explain what is the benefit of using enum to declare a constant?