what is difference between c and c++

Answers were Sorted based on User's Feedback



what is difference between c and c++..

Answer / vignesh1988i

C C++
1) C is an structured oriented object oriented lang.
language
2) C use structures where no here it contains classes
function and data's inside where it contains both data's
involved . only outside we as well as member functions
can write functions and
initilization could be done
3) variables should be wherever we wann we can
initilized on the first line initilize the variable
after the main function

Is This Answer Correct ?    9 Yes 0 No

what is difference between c and c++..

Answer / vantees

C
1)Structured programing.
2)In build functions are used to allocate the memory dynamically.
3)Struct members are public by default.
4)Data and functions are separated.

C++
1)Object oriented programing.
2)New ,Delete operators are used to allocate the memory dynamically
3)class members are private by default.
4)Together data and functions into single entity.

Is This Answer Correct ?    9 Yes 0 No

what is difference between c and c++..

Answer / sandeep kumar

C
1)It is structured language
2)It follows Top-down approach
3)large programs are divided into small programs called
functions
4)data move openly from one function to other function

C++
1)It is a Object oriented language
2)It is not compulsory to be top-down procedure
3)large program is divided into small objects
4)data cant be accessed by external functions easily

Is This Answer Correct ?    1 Yes 0 No

what is difference between c and c++..

Answer / tapan pal

C
1)Structured programing.
2)In build functions are used to allocate the memory
dynamically.
3)Struct members are public by default.
4)Data and functions are separated.

C++
1)Object oriented programing.
2)New ,Delete operators are used to allocate the memory
dynamically
3)class members are private by default.
4)Together data and functions into single entity.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Interview Questions

will u please send me the placement papers to my mail???????????????????

0 Answers  


How was c created?

0 Answers  


how to find the size of the data type like int,float without using the sizeof operator?

13 Answers  


What is difference between constant pointer and constant variable?

0 Answers   Hexaware,


When should I declare a function?

0 Answers  






why return type of main is not necessary in linux

0 Answers   TCS,


write a c code "if you give a any decimal number then print that number in english alphabet"? ex: i/p: 552 o/p: five hundred fifty two ...

1 Answers   Philips,


what is op? for(c=0;c=1000;c++) printf("%c",c);

21 Answers   Trigent,


How can I recover the file name given an open stream?

0 Answers  


how to implement stack operation using singly linked list

2 Answers  


Explain how can you restore a redirected standard stream?

0 Answers  


how to determine the complexity of an algorithm as log(n)

1 Answers   Google,


Categories