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

Is java easier than c++?

586


Do we have to use initialization list in spite of the assignment in constructors?

563


What's c++ used for?

589


Which is most difficult programming language?

578


How does class accomplish data hiding in c++?

657






What do you mean by stack unwinding in c++?

725


What is a sequence in c++?

574


Can manipulators fall in love?

559


Why the usage of pointers in C++ is not recommended ?

890


What is ios flag in c++?

676


Explain Text Manipulation Routines?

644


Define a pdb file.

638


Can we inherit constructor in c++?

583


How should a contructor handle a failure?

683


How would you implement a substr() function that extracts a sub string from a given string?

561