Write any small program that will compile in "C" but not
in "C++"

Answer Posted / sauarv

answer no.. 6 is the most correct solution

as the class is a keyword in c++

but for answer 9 ,,ur prediction is correct that it will give error in c++ ,,although ur reason is not right

printf n csanf are not c specific

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work

601


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

561


Briefly describe a B+ tree. What is bulk loading in it?

791


What happens when you make call 'delete this;'?

601


Why is c++ not purely object oriented?

559






What is a unnitialised pointer?

525


How do I exit turbo c++?

578


How to declare a pointer to an array of integers?

641


How do I start a c++ project?

583


What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero

636


What is the latest c++ version?

603


What is an arraylist c++?

684


what is data abstraction in C++?

642


Why c++ is not a pure oop language?

551


Difference between pointer to constant vs. Pointer constant

576