What is the Difference between "C structure" and "C++
structure"?
Answers were Sorted based on User's Feedback
Answer / asif iqbal
1.C is a procedural oriented lang. whereas C++ is an object oriented lang.
2.C employs bottom-up aproach whereas C++ employs top-down approach.
3.In C main preference is given to functions whereas in C++ main preference is given to objects.
4.In C no inheritence,polymorphism whereas in C++ it exists.
5.In C data member and member functions are separated whereas in C++ they are within a Class.
Is This Answer Correct ? | 1 Yes | 8 No |
Answer / guest
C++ DOES NOT HAVE INHERITANCE IT DOSE NOT HAVE POINTERS N
HEADER FILES
Is This Answer Correct ? | 7 Yes | 33 No |
Why ctype h is used in c++?
What is a virtual destructor?
If P is the population on the first day of the year, B is the birth rate, and D is the death rate, the estimated population at the end of the year is given by the formula: The population growth rate is given by the formula: B – D Write a program that prompts the user to enter the starting population, birth and death rates, and n, the number of years. The program should then calculate and print the estimated population after n years. Your program must have at least the following functions: 1. growthRate: This function takes its parameters the birth and death rates, and it returns the population growth rate. 2. estimatedPopulation: This function takes its parameters the current population, population growth rate, and n, the number of years. It returns the estimated population after n years Your program should not accept a negative birth rate, negative death rate, or a population less than 2.
What is iomanip c++?
What do manipulators do?
Is it possible for a member function to use delete this?
Explain Memory Allocation in C/C++ ?
How does a C++ structure differ from a C++ class?
Define a nested class.
what is pulse code modulation?
How to implement is-a and has-a class relationships?
What is the difference between a pointer and a link in c ++?