what is the difference between
const char *p, char const *p, const char* const p
Answer Posted / bhargav
Const char *P ->
declares a pointer through which you may be able to access
a char but you can not change it through the said pointer.
But the pointer itself can be changed.
char const *p ->
in this the value is constant
const char* const p ->
both address and value are constants
| Is This Answer Correct ? | 13 Yes | 22 No |
Post New Answer View All Answers
difference between Low, Middle, High Level languages in c ?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
Create a simple code fragment that will swap the values of two variables num1 and num2.
Explain about C function prototype?
How can I get random integers in a certain range?
What are pointers really good for, anyway?
How many loops are there in c?
Tell me what is the purpose of 'register' keyword in c language?
Why & is used in c?
Explain 'bit masking'?
Why we use int main and void main?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
Write a program in c to replace any vowel in a string with z?
What are the 4 types of programming language?
Can stdout be forced to print somewhere other than the screen?