Q:

How can you protect a character pointer by some accidental modification with the pointer address?

0

How can you protect a character pointer by some accidental modification with the pointer address?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Using the const keyword we can protect a character pointer by some accidental modification with the pointer address. Eg, const char *ptr; here we can not change the value of the address pointed by ptr by using ptr.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Embedded C interview questions and answers (2022)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Consider the two statements and find the differenc... >>
<< What is virtual memory?...