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

Can a class be static in c++?

1090


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3907


What is const pointer and const reference?

1153


What do you mean by overhead in c++?

1085


Discussion on error handling of C++ .

1118


How do you save a c++ program?

1034


What is wrapper class in c++?

1109


Explain linear search.

1050


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1088


What is the output of the following program? Why?

1142


What is implicit conversion/coercion in c++?

1440


Explain one-definition rule (odr).

1116


What is string in c++ programming?

1177


What are the advantages of pointers?

1061


Explain virtual class and friend class.

1046