What is C++
Answers were Sorted based on User's Feedback
Answer / prasanna
c++ is the extention language of c.
it is a object oriented language
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / suganya
c is a structure oriented language and c++ is the object
oriented language
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / chirag
C is object oriented language.
C is very easy language.
| Is This Answer Correct ? | 3 Yes | 6 No |
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
what is out put of the following code? #include class Base { Base() { cout<<"constructor base"; } ~Base() { cout<<"destructor base"; } } class Derived:public Base { Derived() { cout<<"constructor derived"; } ~Derived() { cout<<"destructor derived"; } } void main() { Base *var=new Derived(); delete var; }
Is anything faster than c?
Which command is more efficient? *(ptr+1) or ptr[1]
what will be the output of this program? #include<stdio.h> #define cube(x) x*x*x void main() { int i,j=5; i=cube(j+3); printf("i=%d",i); }
what are the advantages of a macro over a function?
How does C++ help with the tradeoff of safety vs. usability?
2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier.  Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed.  When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed.  Sequence of take-off is the sequence of addition to the waitlist
Explain how can you be sure that a program follows the ansi c standard?
Why doesn't the code "a[i] = i++;" work?
What is strcmp in c?
Why static variable is used in c?