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

If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?

1197


What is void pointer in c++ with example?

1128


How long does it take to get good at leetcode?

1235


Tell me can a pure virtual function have an implementation?

1097


What is namespace & why it is used in c++?

1171


How important is c++?

1031


How do you find out if a linked-list has an end?

1175


In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h

1257


What does override mean in c++?

1117


What is the best c++ ide?

1233


What are the four partitions in which c++ compiler divides the ram?

1284


What is the use of dot in c++?

1125


Is c++ a float?

1107


Explain about Virtual Function in C++?

1080


What are the two types of comments?

1047