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

a[] = "string"; is constant pointer to constant string
char *p = "string"; is pointer to constant string

Is This Answer Correct ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is c platform dependent?

1137


What is the value of h?

1083


What is the use of extern in c?

1144


How many levels of pointers have?

1097


What is maximum size of array in c?

1084


Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

1106


How can I avoid the abort, retry, fail messages?

1183


What is the use of pointers in C?

1133


Can main () be called recursively?

1175


provide an example of the Group by clause, when would you use this clause

2244


Write a program to print fibonacci series without using recursion?

1216


What are header files in c programming?

1179


How do I determine whether a character is numeric, alphabetic, and so on?

1182


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

1054


What is the data segment that is followed by c?

1134