Answers for "how to define const in c"

C
0

const in c

int *ptr; // *ptr is an int value
int const *ptrToConst; // *ptrToConst is a constant (int: integer value)
int * const constPtr; // constPtr is a constant (int *: integer pointer)
int const * const constPtrToConst; // constPtrToConst is a constant (pointer)
                                   // as is *constPtrToConst (value)
Posted by: Guest on August-25-2021

Code answers related to "C"

Browse Popular Code Answers by Language