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...

wats the diference btwen constant pointer and pointer to a
constant.pls give examples.

Answer Posted / jamili reddy

int i =12;
int * const ptr = 24; //constant pointer

you can't change the ptr value

const int *ptr = 24;//ptr to a constant

int const * ptr = 24;//ptr to a constant


you can't change the value at ptr

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

The difference between printf and fprintf is ?

1295


What is a lookup table in c?

1124


Write a program to find factorial of a number using recursive function.

1126


A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

1100


GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

1108


Does c have an equivalent to pascals with statement?

1011


What is the maximum no. of arguments that can be given in a command line in C.?

1154


What are the advantages of the functions?

1164


What is the use of a ‘’ character?

1095


Do variables need to be initialized?

1061


Explain how many levels deep can include files be nested?

1080


What is wrong in this statement?

1149


What does return 1 means in c?

1074


Explain what is the benefit of using an enum rather than a #define constant?

1225


What is a spanning Tree?

1597