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


Please Help Members By Posting Answers For Below Questions

What are the two shift operators and what are their functions?

559


Refer to a name of class or function that is defined within a namespace?

598


Explain the use of this pointer?

634


What language does google use?

582


What is insertion sorting?

659






What is the role of static keyword for a class member variable?

627


How many keywords are used in c++?

554


Describe public access specifiers?

577


What is c++ namespace?

708


How does class accomplish data hiding in c++?

657


How can virtual functions in c++ be implemented?

606


When should overload new operator on a global basis or a class basis?

608


Is c++ the most powerful language?

562


Are c and c++ different?

533


What do nonglobal variables default to a) auto b) register c) static

642