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 diffrence between string and character array?

Answer Posted / vadivelt

By default String always ends with NULL character ie., '\0'.

But in character array manually it is needed to terminate
with NULL(You can do this, only when you wanted to use
character array as string)

Eg;

char *p = "Vadivel"; /*By default string is terminated
with '\0'*/

char array[8] = {'V','a','d','i','v','e','l','\0'};
/*Here terminated manually*/

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use null pointer?

1111


Is there any possibility to create customized header file with c programming language?

1104


Do character constants represent numerical values?

1394


What is the use of extern in c?

1143


Explain why can’t constant values be used to define an array’s initial size?

1398


Why is c used in embedded systems?

1172


What is bubble sort in c?

1100


What is 02d in c?

1111


Which is better oop or procedural?

1127


What is scope rule of function in c?

1149


What is extern c used for?

1118


What is a structural principle?

1238


Differentiate between the expression “++a” and “a++”?

1306


How can I make sure that my program is the only one accessing a file?

1346


What is call by value in c?

1048