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

hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

2135


Can you write a programmer for FACTORIAL using recursion?

984


Was 2000 a leap year?

1004


Can the sizeof operator be used to tell the size of an array passed to a function?

1057


How can you convert integers to binary or hexadecimal?

979


What does the error 'Null Pointer Assignment' mean and what causes this error?

1158


How do we print only part of a string in c?

973


Explain the difference between strcpy() and memcpy() function?

948


Why is c used in embedded systems?

1058


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

1021


Is c procedural or functional?

978


Tell me what is the purpose of 'register' keyword in c language?

969


What is null in c?

1005


Why is c fast?

1009


When we use void main and int main?

1018