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
What is algorithm in c++ programming?
What are protected members in c++?
What are vectors used for in c++?
What is the difference between *p++ and (*p)++ ?
Difference between pointer to constant and constant pointer to a constant. Give example.
What are containers in c++?
Why was c++ made?
If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?
Difference between overloaded functions and overridden functions
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal
What is the output of the following program? Why?
What is the limitation of cin while taking input for character array?
What is the difference between containment and delegation?
How does c++ structure differ from c++ class?
What is the difference between public and private data members?