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

Answer Posted / ratish

c/c++ is case sensitive language. so Char is invalid data type. hence char *a="String" is correct answer.

Is This Answer Correct ?    11 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When should we use container classes instead of arrays?

811


Which coding certification is best?

794


How do you invoke a base member function from a derived class in which you’ve overridden that function?

844


What is the average salary of a c++ programmer?

791


What are single and multiple inheritances in c++?

786


What is the best ide for c++?

812


What is an adjust field format flag?

895


What are the characteristics of friend functions?

775


What does flush do c++?

820


What are the sizes and ranges of the basic c++ data types?

812


What do you mean by inheritance in c++?

834


Is c++ a pure oop language?

833


What is the purpose of templates in c++?

782


What are the five basic elements of a c++ program?

855


Which is the best c++ software?

835