What is the difference b/w main() in C language and main()
in C++.
Answer Posted / ayush jindal
in c & c++
the main difference is that "c" is based on top to bottom
approach.in "c"languge the header file is used as
#include<stdio.h> its also programable language.
& in c++ is based on bottom upto top approach. in c++ the
header file is used as #include<iostream.h> is used. is
also based on "object oriented program".
| Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
Why use int main instead of void main?
ATM machine and railway reservation class/object diagram
How arrays can be passed to a user defined function
Why is c so important?
What does the characters “r” and “w” mean when writing programs that will make use of files?
What is context in c?
What are the data types present in c?
What is structure in c definition?
What language is windows 1.0 written?
What are local static variables?
Why c is a mother language?
How do you print only part of a string?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
Stimulate calculator using Switch-case-default statement for two numbers
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above