What is the difference between Char a[ ]=”string” and char
*a=”String”
Answer Posted / rajesh kumar
char *p="string" has RO permission while its counterpart char a[]="string" has RW permission.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can I have a reference as a data member of a class? If yes, then how do I initialise it?
Does c++ have arraylist?
Is java as fast as c++?
Which function should be used to free the memory allocated by calloc()?
Write about the members that a derived class can add?
What is the return value of the insertion operator?
Why should you learn c++?
Explain about vectors in c ++?
Can constructor be static in c++?
Define a constructor?
What is a stack? How it can be implemented?
Can we change the basic meaning of an operator in c++?
Show the declaration for a pointer to function returning long and taking an integer parameter.
What are the basics of local (auto) objects?
What are virtual constructors/destructors?