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
In C language what is a 'dangling pointer'?
Is multithreading possible in c?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
Write a program to print fibonacci series using recursion?
how to count no of words,characters,lines in a paragraph.
What does d mean?
What is an array in c?
to find the closest pair
How can I get the current date or time of day in a c program?
What is difference between class and structure?
Why static variable is used in c?
What is the use of printf() and scanf() functions?
What does *p++ do? What does it point to?
What is time null in c?
Which is the memory area not included in C program? give the reason