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

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

1004


What is the role of this pointer?

994


How main function is called in c?

1072


What is advantage of pointer in c?

1122


What does the message "automatic aggregate intialization is an ansi feature" mean?

1143


How was c created?

997


Why doesnt the call scanf work?

1138


Explain how do you search data in a data file using random access method?

1070


what is event driven software and what is procedural driven software?

2508


What is the purpose of main( ) in c language?

1089


What do you mean by dynamic memory allocation in c?

1050


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

1171


Is struct oop?

960


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

2008


How can you check to see whether a symbol is defined?

1048