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 size of array float a(10)?
Who invented bcpl language?
How can I read a binary data file properly?
How do I use void main?
Explain how can I manipulate strings of multibyte characters?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
How do c compilers work?
What is a far pointer in c?
What is %d used for?
Does * p ++ increment p or what it points to?
What is a loop?
What is the difference between strcpy() and memcpy() function in c programming?
When should a type cast not be used?
What is #include called?
What are inbuilt functions in c?