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

Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

3013


What does it mean when the linker says that _end is undefined?

1040


a c code by using memory allocation for add ,multiply of sprase matrixes

2744


Explain can you assign a different address to an array tag?

1014


What is variable and explain rules to declare variable in c?

1017


What are # preprocessor operator in c?

1044


What is a volatile keyword in c?

1112


What does the && operator do in a program code?

1159


What are header files why are they important?

1044


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

1091


What is context in c?

884


Does sprintf put null character?

988


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

2145


What is an lvalue?

1014


How can I do serial ("comm") port I/O?

1131