const char *
char * const
What is the differnce between the above tow?.
Answer Posted / 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 |
Post New Answer View All Answers
What is the use of bitwise operator?
Function calling procedures? and their differences? Why should one go for Call by Reference?
What is the difference between arrays and pointers?
Combinations of fibanocci prime series
How many types of sorting are there in c?
c program to compute AREA under integral
Explain what is wrong with this program statement? Void = 10;
Define Array of pointers.
What is meant by 'bit masking'?
What is scope of variable in c?
Write a program which returns the first non repetitive character in the string?
How can you pass an array to a function by value?
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.
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
What is NULL pointer?