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

a[] is a constant pointer to a string;

char *p is a pointer to a constant string;

In a[] address of a[] cant be change but string can be
change.

In char *p address can be change string cant be change

Is This Answer Correct ?    15 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the concept and use of type void.

1118


How are structure passing and returning implemented?

1041


Explain low-order bytes.

1039


What is time complexity c?

1000


How can I insert or delete a line (or record) in the middle of a file?

1022


Can you define which header file to include at compile time?

1022


What is the purpose of main() function?

1256


How can a program be made to print the line number where an error occurs?

1089


What are variables c?

1055


How can I send mail from within a c program?

1034


What is the difference between variable declaration and variable definition in c?

1060


largest Of three Number using without if condition?

1604


What does dm mean sexually?

1318


What is pointer and structure in c?

1186


What is union and structure in c?

1231