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
What is the difference between ‘g’ and “g” in C?
List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.
What is double pointer?
How can a number be converted to a string?
Here is a good puzzle: how do you write a program which produces its own source code as output?
Differentiate between declaring a variable and defining a variable?
Is it possible to initialize a variable at the time it was declared?
What are the different types of linkage exist in c?
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
Is stack a keyword in c?
Explain zero based addressing.
How can you find the exact size of a data type in c?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
Which header file should you include if you are to develop a function which can accept variable number of arguments?