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

Explain rtti.

1034


What is setw manipulator in c++?

1031


What is null pointer and void pointer?

1017


What is an inclusion guard?

1122


In a function declaration, what does extern mean?

1003


Define basic type of variable used for a different condition in C++?

1063


Explain how an exception handler is defined and invoked in a Program.

1131


What data encapsulation is in c++?

1065


Give example of a pure virtual function in c++?

1102


What number of digits that can be accuratly stored in a float (based on the IEEE Standard 754)? a) 6 b) 38 c) An unlimited number

1218


What is the difference between global variables and static varables?

1085


What is array in c++ pdf?

1107


Can you use the function fprintf() to display the output on the screen?

1207


When there is a global variable and local variable with the same name, how will you access the global variable?

1056


Is the declaration of a class its interface or its implementation?

1131