what is the main difference between c and c++?

Answer Posted / rajan bajlalia pathankot

C Is very easy language. and c++
is very hot languege. c is procedural programming language.
and c++ is object oriented languege. c language is used by
main(). and c++ is used by viod main(). c is used by
#<include.h> and c++ is used is A#include<iostreame>.
c is printf/scanf used by output/input.c is a topdown
approach while c++ is bottom up approach.C++ support
operator overloading but c doesn't
support
operator overloading.C is a LOW level language.
C++ is a HIGH level language.we have used by c is
semicolom. and c++ is not used by semicolom. c is length
programming and c++ is not length programming.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

#include #include #include #include void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

2301


Is html an oop?

755


What is the diamond problem in inheritance?

795


assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

1874


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6341


Why do we use inheritance?

804


What is polymorphism give a real life example?

746


What causes polymorphism?

792


Why do pointers exist?

855


write string class as your own class in java without using any built-in function

2186


Whats is abstraction in oops?

814


What does no cap mean?

772


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1873


What are constructors in oop?

775


What is multilevel inheritance?

928