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 |
what type of questions arrive in interview over c programming?
write a program that will read the temperature in Celsius and convert that into Fahrenheit.
How do you define a string?
how to make c program without a libary? e.g.#include<stdio.h> libary is not in c progaram.
Why we use stdio h in c?
Why is c known as a mother language?
DIFFERNCE BETWEEN THE C++ AND C LANGUAGE?
If errno contains a nonzero number, is there an error?
How would you print out the data in a binary tree, level by level, starting at the top?
struct abc { unsigned int a; char b; float r; }; struct xyz { int u; struct abc tt; }ww; ww = (struct xyz*)malloc(sizeof(struct xyz)); will the memory be allocated for the inner structure also?
Why does the call char scanf work?
How do you construct an increment statement or decrement statement in C?