Is there something that we can do in C and not in C++?
Answer Posted / som
In C the const variables can be declared and can allocate
the value later.
For ex:
const int i;
i = 7;
This will work in c, but c++ will give compilation error.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
Why are pointers used?
How can you link a c program with a c function?
What is malloc in c++?
what is data encapsulation in C++?
Define a pointer to a data member of the type pointer to pointer?
what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?
what is the difference between overloading & overriding? give example.
How a new element can be added or pushed in a stack?
What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number
Explain polymorphism?
How many keywords are used in c++?
What are formatting flags in ios class?
Explain about Garbage Collector?
What is setfill c++?
Why is c++ still used?