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

How many parameters should a function have?

1179


How does selection sort work in c?

1028


What is a pragma?

1120


explain how do you use macro?

1148


How can you restore a redirected standard stream?

1115


What are the characteristics of arrays in c?

1048


What is dynamic dispatch in c++?

1049


develop algorithms to add polynomials (i) in one variable

2159


write a c program for swapping two strings using pointer

2622


Explain what are the __date__ and __time__ preprocessor commands?

1111


How can I call a function with an argument list built up at run time?

1231


How many levels of indirection in pointers can you have in a single declaration?

1083


what is event driven software and what is procedural driven software?

2564


What are the two types of functions in c?

1000


What is pointer to pointer in c with example?

1059