const char *
char * const
What is the differnce between the above tow?.
Answer Posted / kamaljit singh
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 ? | 3 Yes | 0 No |
Post New Answer View All Answers
Why does this code crash?
What does & mean in scanf?
Can we declare variable anywhere in c?
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
Why enum is used in c?
How can I write a function that takes a format string and a variable number of arguments?
Is main an identifier in c?
What is #include stdio h?
What the advantages of using Unions?
Is anything faster than c?
what are non standard function in c
How do you define a function?
Where register variables are stored in c?
Where are some collections of useful code fragments and examples?
What is the difference between int main and void main?