what is the main difference between c and c++?
Answers were Sorted based on User's Feedback
Answer / nitish kumar jha
The main Difference between C and C++ is C is structure Based
programing language.that means in C also we have structure
based Applications like Structures and Unions.
C++ is Object Oriented Language that means entire
application will be depending on Objects only.
Uses of Object oriented Program is Reusability,Increase the
effiency of the program and it gives extra security like
Private data is also be there in C++.
C++ is the Advanced version of C.
In otherwords we say c++ supports both Object based and
Object oriented Applications
i mean finally i want say that both are same because C&C++
both are language the main diffrence between them C is old
version language and C++ is latest programing language which
come modified of C language ....
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / nitish kumar jha
No very large diffrence between C and C++..
The main diffrence between them C is the old programing
language.while C++ is the latest programing language.C++ is
modified form of C language . and other diffrence like as in
input,output,programing,etc.this all diffrence are come due
to modify.........
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ayesha
c is a procedural programming language and c++ is object oriented language.
the most important difference between c and c++ is , in c++ we can use user defined data type as basic data type.but, this can't be in c.....
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / saddam hussain
c is procedural language,while c++ is an objected oriented
programing language.The main difference between c and c++
is that, in c importance is given to steps or procedure of
programe and in c++ focuses on the data rather than process.
in short data is not secured in c while in c++ data is
secured(Hidden).
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sushil kumar sinha(sinha colle
*c is a structural program but c++ is a opp(object orianted
program).
*In c use for #include<stdio.h>heder file .
but c++ use for #include<iostrem.h>heder file.
*c program approch by top to bottom but
c++ program approch by bottom to top.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / patel dimpal p.
c is procedure oriented language
while c++ is object oriented language.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / breetha s
c is not aobject orientedlanguage
c++ is object oriented language
c is a lowlevel language
c++ is a high level language
C is a procedural language,but C++ is a object oriented
language.
c is the top to bottom,but c++ is bottom to top language.
| Is This Answer Correct ? | 4 Yes | 4 No |
C IS A MIDDLE LEVEL LANGUAGE BUT C++ IS A HIGHERLEVEL
LANGUAGE. C++ SUPPORT REAL TIME OPERATING SYSTEM,EXPERT
SYSTEM BUT C DOES NOT SUPPORT LIKE THAT APPLICATION
| Is This Answer Correct ? | 4 Yes | 4 No |
what is meant by files?
Why is polymorphism used?
in the following, A D B G E C F Each of the seven digits from 0,1,2,3,4,5,6,7,8,9 is: a)Represented by a different letter in abov fig: b)Positioned in the fig abov so tht A*B*C,B*G*E,D*E*F are equal. wch does g represents? C
why we call c++ is object oriented lanaguage
Why we are use # in begning of programme of c++.
What is an interface in oop?
#include <stdio.h> #include <alloc.h> #include <stdlib.h> #include <conio.h> void insert(struct btreenode **, int); void inorder(struct btreenode *); struct btreenode { struct btreenode *leftchild; struct btreenode *rightchild; int data; }; main() { struct btreenode *bt; bt=(struct btreenode *)NULL; int req,i=1,num; clrscr(); printf("Enter number of nodes"); scanf("%d",&req); while(i<=req) { printf("Enter element"); scanf("%d",&num); insert(&bt,num); i++; } inorder(bt); } void insert(struct btreenode **sr, int num) { if(*sr==NULL) { *sr=(struct btreenode *)malloc (sizeof(struct btreenode)); (*sr)->leftchild=(struct btreenode *)NULL; (*sr)->rightchild=(struct btreenode *)NULL; (*sr)->data=num; return; } else { if(num < (*sr)->data) insert(&(*sr)->leftchild,num); else insert(&(*sr)->rightchild,num); } return; } void inorder(struct btreenode *sr) { if(sr!=(struct btreenode *)NULL) { inorder(sr->leftchild); printf("\n %d",sr->data); inorder(sr->rightchild); } else return; } please Modify the given program and add two methods for post order and pre order traversals.
how to find the largest of given numbers in an array
What is difference between inheritance and polymorphism?
what is function over loading?
Can java compiler skips any statement during compilation time?
What is operator overloading? Give Example
11 Answers CTS, IBM, TCS,