Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / jyotsna

C
c is a procedural programming language

in c we use printf function

in c we use scanf function as standard input

c-programe the main function could not return a value

in c we use #include<stdio.h>as inclusion file

c is a topdown approach

In C memory allocation is done with malloc statement

memory is
deallocated in C using free statement

In C DATA IS NOT SECURED

FOCUS ON PROCEDURES
PROGRAMS ARE DECOMPOSED
INTO FUNCTIONS
DOES NOT PROVIDE
DEFAULT ARGUMENTS
c is low level language

In C,DATA can be MOVE openly around in the system from
function to function

C is a collection of FUNCTIONS.

C++
c++ is object oriented

in c++ we use cout<< as a
output function.

in c++ we use streame cin>> for input

in the c++ the main function should return a value

In c++ we use #include<iostreame>as inclusion file.

c++ is bottom up approach

in C++ it is done through new keyword

in C++
deallocation takes place through delete.

In C DATA IS SECURED

FOCUS ON DATA

INTO OBJECTS
PROVIDES
c++ is sn high level language

In C++,DATA is HIDDEn.It can not be accessed by external
Functions

C++ is a collection of FUNCTIONS and/or CLASS.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is overriding in oops?

1056


Get me an image implementation program.

1938


What is the real life example of polymorphism?

1111


Get me a number puzzle game-program

2180


Why do we use inheritance?

1059


What is static modifier?

1124


What is cohesion in oop?

1007


Can we define a class within the interface?

986


What is destructor oops?

1033


Why is polymorphism needed?

1001


INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?

2146


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

2089


What are constructors in oop?

1083


What is encapsulation example?

982


What is difference between abstraction and encapsulation?

1019