what is difference between c and c++
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
will u please send me the placement papers to my mail???????????????????
How was c created?
how to find the size of the data type like int,float without using the sizeof operator?
What is difference between constant pointer and constant variable?
When should I declare a function?
why return type of main is not necessary in linux
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 ...
what is op? for(c=0;c=1000;c++) printf("%c",c);
How can I recover the file name given an open stream?
how to implement stack operation using singly linked list
Explain how can you restore a redirected standard stream?
how to determine the complexity of an algorithm as log(n)