Write any small program that will compile in "C" but not in
"C++"?
Answer Posted / sathish kumar
Hi All,
U can write many programs which will compile in C and not
in C++. Sample program.
const i; /* this is possible in C but not in C++ */
const int i; // it should be done like this in C++.
Thanks & Regards
Sathish Kumar
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
Which one between if-else and switch is more efficient?
Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300
How many types of scopes are there in c++?
What are the various compound assignment operators in c++?
What is a hash function c++?
Is c++ a pure oop language?
What do you mean by a template?
Why is c++ not purely object oriented?
What are the different types of polymorphism in c++?
When there is a global variable and local variable with the same name, how will you access the global variable?
What are the differences between malloc() and calloc()?
What are friend classes?
What language does google use?
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?
Differentiate between late binding and early binding. What are the advantages of early binding?