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 a const pointer, and how does it differ from a pointer to a const?

Answer Posted / nashiinformaticssolutions

1. Pointer to const: The value being pointed to cannot be modified, but the pointer itself can change.
Example:
2. const int a = 10;
3. const int *ptr = &a; // *ptr is read-only
4. const pointer: The pointer cannot change, but the value it points to can.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the size of array float a(10)?

1126


What does a pointer variable always consist of?

1085


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

1061


Which node is more powerful and can handle local information processing or graphics processing?

1298


write a program to copy the string using switch case?

2877


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2079


What is the difference between printf and scanf in c?

1326


What are the 5 data types?

1109


Write a program to reverse a given number in c?

1016


What are the types of unary operators?

1168


What are the 5 types of organizational structures?

1056


which type of aspect you want from the student.

2153


Why doesnt the call scanf work?

1167


What is advantage of pointer in c?

1166


Explain what is the difference between null and nul?

1133