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

What is pointer & why it is used?

0 Answers  


What is the purpose of ftell?

0 Answers  


What is the maximum no. of arguments that can be given in a command line in C.?

0 Answers   HCL,


if the address of a[1,1] and a[2,1] are 1000 and 1010 respectively and each occupies 2 bytes then the array has been stored in what order?

4 Answers   Amazon, Apple, Bata, Google, NASA,


why we wont use '&' sing in aceesing the string using scanf

0 Answers   HCL,






How many keywords (reserve words) are in c?

0 Answers  


Q. where is the below variables stored ? - volatile, static, register

3 Answers   Bosch,


What is LINKED LIST? How can you access the last element in a linked list?

0 Answers   ADP,


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

0 Answers   IBM,


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

0 Answers   HP,


what is a function pointer and how all to declare ,define and implement it ???

4 Answers   Honeywell,


How is actual parameter different from the formal parameter?

0 Answers  


Categories