When should the const modifier be used? Ans. There are several reasons to use const pointers. First, it allows the compiler to catch errors in which code accidentally changes the value of a variable, as in while (*str = 0) /* programmer meant to write *str != 0 */ { /* some...
See more
Download the Study24x7 App, so you can connect and collaborate.