What is a const pointer?



What is a const pointer?..

Answer / Neeraj Kumar Rathour

A const pointer in C is a pointer that points to a constant (non-modifiable) memory location. It can point to any variable, but once it does, the value of the variable cannot be changed through that pointer.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

a=0; while(a<5) printf("%d\n",a++); how many times does the loop occurs? a.infinite b.5 c.4 d.6

7 Answers   TCS,


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1 Answers  


what does ‘Bus Error’ mean?

1 Answers   ABC,


Explain how do you sort filenames in a directory?

1 Answers  


what is the difference between c and java?

1 Answers  


Why array is used in c?

1 Answers  


Hai friends im a i year student. i want to develop my knowledge in the field of TSR in c. How I'm Improve ?

2 Answers  


what is pointer?

4 Answers  


What are signals in C?

2 Answers  


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

1 Answers  


main() { int i = 10; printf(" %d %d %d \n", ++i, i++, ++i); }

10 Answers   TCS, Vector,


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1 Answers  


Categories