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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is this pointer in c plus plus?

806


Can we declare a function inside a function in c?

813


What are runtime error?

854


Are pointers integer?

767


Mention four important string handling functions in c languages .

854


what are the 10 different models of writing an addition program in C language?

1666


Which is better between malloc and calloc?

906


How many data structures are there in c?

841


What is a structural principle?

844


What would be an example of a structure analogous to structure c?

783


When should you not use a type cast?

889


Process by which one bit pattern in to another by bit wise operation is?

862


Differentiate Source Codes from Object Codes

1164


Write a program that accept anumber in words

1484


FILE PROGRAMMING

2000