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

Do pointers take up memory?

1158


a value that does not change during program execution a) variabe b) argument c) parameter d) none

1238


What is d scanf?

1089


Explain what are binary trees?

1077


What is the purpose of main() function?

1249


What is the newline escape sequence?

1076


What is a static variable in c?

1121


Explain void pointer?

1045


What does stand for?

1083


What is an expression?

1059


Is c still used?

1047


Why can't I perform arithmetic on a void* pointer?

1096


I need a sort of an approximate strcmp routine?

1030


I have seen function declarations that look like this

1043


Discuss the function of conditional operator, size of operator and comma operator with examples.

1158