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
Why is c called c not d or e?
Explain the use of 'auto' keyword in c programming?
What is a struct c#?
How do I use void main?
What is keyword in c?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
What is a substring in c?
What is the use of pointers in C?
Is null always equal to 0(zero)?
What is the size of enum in bytes?
Difference between strcpy() and memcpy() function?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
What is function prototype?
What are the valid places to have keyword “break”?
What are the restrictions of a modulus operator?