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

we can not access a++ or a-- on array but we can do that in
pointers

array, address is constanct for that string, pointer is not
like that

Is This Answer Correct ?    43 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How variables are declared in c?

993


What is a stream water?

1127


difference between object file and executable file

6641


How can you draw circles in C?

1099


A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

1052


Explain the binary height balanced tree?

1124


How do you sort filenames in a directory?

1124


Explain how do you determine a file’s attributes?

999


What does *p++ do? What does it point to?

1004


What is the difference between malloc calloc and realloc in c?

1070


What are the advantages and disadvantages of pointers?

1012


Write a code to determine the total number of stops an elevator would take to serve N number of people.

1188


Why use int main instead of void main?

1072


What is %g in c?

1020


Is c a great language, or what?

1050