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 |
please explain every phase in the "SDLC" in the dotnet.
What are dynamically linked and statically linked libraries?
what is linkage error when it occurs in c program
void main() { int i=5; printf("%d",i+++++i); }
Differentiate between new and malloc(), delete and free() ?
Explain why C language is procedural?
Can static variables be declared in a header file?
What is the purpose of #pragma directives in C?
What the different types of arrays in c?
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
what is the first address that gets stored in stack according to a C or C++ compiler???? or what will be the first address that gets stored when we write a C source code????????
What is mean by data types in c?