what is the difference between
const char *p, char const *p, const char* const p
Answer Posted / magdaleen
In a const char *p the chrac pointed by 'p' is a const, so
u cant change the value of the charac ponted by 'p', but u
can make 'p' refer to some other location.
In a char const *p, the ptr 'p' is constant not the
character refered by it, so u can not make 'p' refer to
anyother location, but u can change the value of the charac
pointed by 'p'
| Is This Answer Correct ? | 10 Yes | 4 No |
Post New Answer View All Answers
What do mean by network ?
Is it valid to address one element beyond the end of an array?
Explain the term printf() and scanf() used in c language?
What is c variable?
What are lookup tables in c?
When do we get logical errors?
What are the disadvantages of a shell structure?
How do I create a directory? How do I remove a directory (and its contents)?
i want to know the procedure of qualcomm for getting a job through offcampus
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
In c programming language, how many parameters can be passed to a function ?
What is the difference between fread and fwrite function?
Is it possible to execute code even after the program exits the main() function?
Give differences between - new and malloc() , delete and free() ?
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above