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 the difference between c and python?

840


difference between native and cross compilers

1893


When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.

1770


How can I find the modification date of a file?

975


Do pointers take up memory?

875


What is union and structure?

813


What is C language ?

1740


What is a struct c#?

798


What is a class c rental property?

878


What are data types in c language?

824


How can you be sure that a program follows the ANSI C standard?

1406


Write a program to print all permutations of a given string.

963


what is the diffrenet bettwen HTTP and internet protocol

1614


What is an lvalue?

860


explain how do you use macro?

933