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 / praveenkumar managuli

char s[]; this allocate memory equal tosize of string
and char *s; holds the address of first charecter

Is This Answer Correct ?    23 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is calloc() function?

1048


What is the difference between call by value and call by reference in c?

1115


What are the different types of control structures?

986


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

969


pierrot's divisor program using c or c++ code

2169


How can I direct output to the printer?

1272


What is a structural principle?

1090


What are the three constants used in c?

930


What is union and structure in c?

1149


Is anything faster than c?

969


What is the use of the function in c?

971


What is a keyword?

1122


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


Function calling procedures? and their differences? Why should one go for Call by Reference?

1041


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

1010