Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is the purpose of the 'const' pointer in C?
Answer: A 'const' pointer points to a constant value, meaning the value it points to cannot be modified through the pointer.

Example:

const int *ptr;
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook