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


const char *
char * const
What is the differnce between the above tow?.

Answers were Sorted based on User's Feedback



const char * char * const What is the differnce between the above tow?. ..

Answer / bava

in the first case it is pointer to a constant (i.e the
address can be changed ,where as the content/value in that
address cannot be changed).
In the later case it is a constant pointer (i.e the address
cannot be changed ,where as the content/value in that
address can be changed).

Is This Answer Correct ?    10 Yes 1 No

const char * char * const What is the differnce between the above tow?. ..

Answer / kamaljit singh

in the first case it is pointer to a constant (i.e the
address can be changed ,where as the content/value in that
address cannot be changed).
In the later case it is a constant pointer (i.e the address
cannot be changed ,where as the content/value in that
address can be changed).

Is This Answer Correct ?    3 Yes 0 No

const char * char * const What is the differnce between the above tow?. ..

Answer / satish

declaration of pointer after character in the first
case,but in second case before constant declaring the
pointer

Is This Answer Correct ?    3 Yes 2 No

const char * char * const What is the differnce between the above tow?. ..

Answer / vignesh1988i

as for as i know.....

1) const char * :
here the character pointer is a constant which can point to
oly one character type memory location throught the program.

2) char * const :
hrere the pointer is not a constant , the character variable
used after it will be constant.. in that variable we cant
make any changes... but in pointer we can make


thank you

Is This Answer Correct ?    1 Yes 0 No

const char * char * const What is the differnce between the above tow?. ..

Answer / lokesh143

In first case address is constant
later case value is constant

Is This Answer Correct ?    0 Yes 0 No

const char * char * const What is the differnce between the above tow?. ..

Answer / subbu

answer is opposite to above answer
first case is constant pointer means that the address which
is assigned at the time of decalaration can not be changed
yet.
in the second case it is pointer to a constant, means the
value stored at that particular address cannot be changed

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More C Interview Questions

Is c an object oriented programming language?

1 Answers  


write a fuction for accepting and replacing lowercase letter to'Z' with out using inline function.

5 Answers   Temenos,


How can you determine the maximum value that a numeric variable can hold?

0 Answers  


What is a class?

3 Answers  


Is there a way to switch on strings?

0 Answers  


Write a C/C++ program that connects to a MySQL server and displays the global TIMEZONE.

0 Answers  


What is c system32 taskhostw exe?

0 Answers  


Compare interpreters and compilers.

0 Answers  


enum day = { jan = 1 ,feb=4, april, may} what is the value of may? a)4 b)5 c)6 d)11 e)none of the above

8 Answers   HCL, Wipro,


a linear linked list such that the link field of its last node points to the first node instead of containing NULL a) linked list b) circular linked list c) sequential linked list d) none

0 Answers  


When is an interface "good"?

1 Answers  


what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))".provide an explation regarding the question

6 Answers  


Categories