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?



what is diffrence between string and character array?..

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

More C Interview Questions

what is array?

63 Answers   Amdocs, HCL,


What is data type long in c?

0 Answers  


program for validity of triangle from 3 side

7 Answers  


what are the different storage classes in c?

0 Answers   TCS,


what is the purpose of the code, and is there any problem with it. bool f( uint n ) { return (n & (n-1)) == 0; }

1 Answers   Google,


when user give a number it multiply with 9 without useing '+' and '*' oprator

4 Answers  


1 232 34543 4567654 can anyone tell me how to slove this c question

6 Answers  


i have a written test in tomorrow

1 Answers   NNN, Value Labs,


Output for following program using for loop only * * * * * * * * * * * * * * *

3 Answers  


What are data structures in c and how to use them?

0 Answers  


What is the difference between break and continue?

3 Answers  


What is a volatile keyword in c?

0 Answers  


Categories