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

Answer Posted / thinker

Losers.! char* is not a constant pointer where as char[] is a constant pointer

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I run c++?

829


Can we specify variable field width in a scanf() format string? If possible how?

927


What is singleton pattern in c++?

762


What is c++ coding?

891


How can you link a c++ program to c functions?

883


How do I download c++?

774


Mention the storage classes in c++.

864


What are register variables?

876


Please explain class & object in c++?

831


Explain container class.

992


What's the order in which the local objects are destructed?

1048


Why is the function main() special?

881


When can I use a forward declaration?

848


What are pointer-to-members in C++? Give their syntax.

896


Write about the role of c++ in the tradeoff of safety vs. Usability?

840