Programming MCQS - QUESTION DETAILS

How do you define a constant pointer to a constant integer in C?
A. const *ptr;
B. *const ptr;
C. const ptr;
D. const int *const ptr;

'const int *const ptr;' defines a constant pointer to a constant integer in C.

Similar Questions

What is the purpose of the 'enum' keyword in C?






How do you declare a two-dimensional array in C?






Which header file is needed for file input and output operations in C?






What is the output of printf("%d", 5 << 2);?






What does the 'exit()' function do in C?






What is the purpose of the 'strncpy' function in C?






What is the purpose of the 'strtok' function in C?






What is the purpose of the 'strchr' function in C?






How do you use the 'const' keyword with a pointer in C?






What is the output of printf("%d", sizeof(1.5));?