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 / vikram

char a[]="string" refers that string has constant length and it will reserve fixed memory while in case of char *a="string" the string has variable length

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What c++ library is string in?

1060


How should runtime errors be handled in c++?

1151


What is pointer -to-members in C++? Give their syntax?

1031


What will happen if a pointer is deleted twice?

1186


What are the two types of comments, and how do they differ?

1138


Explain the use of this pointer?

1157


Describe exception handling concept with an example?

1055


List the types of polymorphism in c++?

1106


Is it legal in c++ to overload operator++ so that it decrements a value in your class?

1064


When do you call copy constructors?

1153


How do you remove an element from a set in c++?

1093


When does a name clash occur in c++?

1173


How do I download c++?

1007


What is the extraction operator and what does it do?

1085


what are the iterator and generic algorithms.

1942