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 data type long in c?

1116


Explain how can you avoid including a header more than once?

1147


What is 1f in c?

2730


What is the advantage of a random access file?

1253


Can you add pointers together? Why would you?

1182


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

1195


What is logical error?

1189


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

1294


When should I declare a function?

1214


Explain what is a static function?

1158


develop algorithms to add polynomials (i) in one variable

2238


What is bubble sort technique in c?

1039


Differentiate between a for loop and a while loop? What are it uses?

1235


What are two dimensional arrays alternatively called as?

1245


What are the advantages of c language?

1150