DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?
Answers were Sorted based on User's Feedback
1) C is structured oriented language and C++ is an object oriented language
2) in C we must finish our decleration in the very next line of void main() , but in Cpp wherever u need a variable storage data , before that instruction we must declare it......
3) In C structures are used , in that only data members can only be declared and member functions not included , but in Cpp inside a class (same as strucutres) both data members as well as member functions can be used..
4) in Structure all the members and strucutre variables are global by default...... but in Cpp by default the data members are private.....
SIMILARITY :
1) both C & C++ uses Overloading concept....... (very important )
thank u
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / manish soni tagore collage jai
main deference in c and cpp is
-------------------|-------------------|
c | c++ |
-------------------|-------------------|
top down approach | bottom up approach|
-------------------|-------------------|
Is This Answer Correct ? | 1 Yes | 0 No |
Explain about the functions strcat() and strcmp()?
How do you list files in a directory?
Do pointers need to be initialized?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
Write a program to check palindrome number in c programming?
Write a C program to perform some of the operation which can be performed using Single linked list
#include<stdio.h> int main() { int i=2; int j=++i + ++i + i++; printf("%d\n",i); printf("%d\n",j); }
How do you construct an increment statement or decrement statement in C?
What is the difference between strcpy() and memcpy() function in c programming?
Is c call by value?
palindrome for strings and numbers----Can anybody do the prog?
6 Answers CTS, TCS, Vipro Lifescience Pvt,
Explain what is meant by high-order and low-order bytes?