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 *p = "string"; ?

Answer Posted / mak

in case of array size of it become fixed after initialization,
so a string of length greater than the size of previous string can't be assigned to array.
on the other hand pointer can take variable size string as it stores only the first address.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a wrapper function in c?

1075


What are the advantages of c language?

1042


Difference between strcpy() and memcpy() function?

1072


How variables are declared in c?

993


What is the significance of scope resolution operator?

1347


write a c program in such a way that if we enter the today date the output should be next day's date.

2137


What is the purpose of realloc()?

1094


What is an endless loop?

1231


What is merge sort in c?

1002


can we change the default calling convention in c if yes than how.........?

2471


Explain how can I prevent another program from modifying part of a file that I am modifying?

1037


A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

1038


What is the difference between fread and fwrite function?

1033


Why static variable is used in c?

978


What are header files and explain what are its uses in c programming?

1065