What is the difference between Char a[ ]=”string” and char
*a=”String”
Answer Posted / kanakesh
using char*a we can't assign new individual character like
a[2]='k';
| Is This Answer Correct ? | 10 Yes | 9 No |
Post New Answer View All Answers
Define virtual constructor.
What is general form of pure virtual function? Explain?
What is the auto keyword good for in c++?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
Can a class be static in c++?
What is c++ & why it is used?
Which programming language's unsatisfactory performance led to the discovery of c++?
What is friend class in c++ with example?
what is data abstraction in C++?
What are static type checking?
Comment on local and global scope of a variable.
Can I learn c++ without c?
What is an iterator?
What is polymorphism in c++? Explain with an example?
Why is main an int?