Is there anything you can do in C++ that you cannot do in C?
Answer / neelam saini
No. There is nothing you can do in C++ that you cannot do in C. After all you can write a C++ compiler in C.
| Is This Answer Correct ? | 0 Yes | 0 No |
Write a short code using c++ to print out all odd number from 1 to 100 using a for loop
What can c++ be used for?
Can you write a function similar to printf()?
List the advantages of inheritance.
how to swap two strings without using any third variable ?
What does it mean to declare a member function as virtual?
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
Do class method definitions?
Given a simple program designed to take inputs of integers from 1-1000 and to output the factorial value of that number, how would you test this program? You do not have access to the code. Please be as specific as possible.
What is the size of pointer ? Also size of pointer in 64 bit pointer
What is cloning?
Can I have a reference as a data member of a class? If yes, then how do I initialise it?