What is the difference between Char a[ ]=”string” and char
*a=”String”

Answer Posted / niranjan kumar niraj

char a[]="string" returns characters and char *a[]="String"
returns address of character

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which function cannot be overloaded c++?

828


Write about the various sections of the executable image?

764


What is object in c++ example?

852


Can a Structure contain a Pointer to itself?

814


What is constructor in C++?

836


What are the various storage classes in C++?

866


Is java the same as c++?

744


Is c better than c++?

840


What is the use of this pointer in c++?

800


What is #include iostream in c++?

793


What is the difference between set and map in c++?

891


Define pre-condition and post-condition to a member function in c++?

897


What is a friend function in c++?

1035


What c++ is used for?

841


What is the basic difference between C and C++?

849