Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / vincy

the syntax for a character variable is wrong if we use a
pointer variable as given above that is char*a="string". so
i think the first one is right.we know that the pointer
variable points to the value in the particular address, then
it should not the "string" but "&string".

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is virtual base class?

1006


what are the iterator and generic algorithms.

1882


Explain what data encapsulation is in c++?

1032


Differentiate between C and C++.

1172


Can create new c++ operators?

963


How do you compile the source code with your compiler?

1002


What is a .h file c++?

990


What is std :: flush?

1002


What is overloading unary operator?

1026


What is the default width for ouputting a long integer using the insertion operator?

1174


What are single and multiple inheritances in c++?

1032


What is an adjust field format flag?

1070


What causes a runtime error c++?

1074


What is c++ good for?

1002


List the types of polymorphism in c++?

1054