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

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 are linked lists in c?

1099


Can we declare a function inside a function in c?

999


How can I handle floating-point exceptions gracefully?

1120


What are Macros? What are its advantages and disadvantages?

1102


how to write optimum code to divide a 50 digit number with a 25 digit number??

3213


Why we use conio h in c?

1167


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

2027


Which is an example of a structural homology?

1274


What is the use of c language in real life?

986


Explain bitwise shift operators?

1185


What is variable declaration and definition in c?

868


How many bytes is a struct in c?

1118


What is c programming structure?

1125


What does sizeof return c?

1017


What is ambagious result in C? explain with an example.

2560