I have two questions with usage of const as an argument in C:-
- Can a pointer be modified when we pass "const p" as an input argument to a static BOOL and void functions. In which case it is possible? If not possible how can we do it with the following example?*
for example:-
main() { int const *p = 1; BOOL(*p); } static BOOL(const *p) { *p = 10; printf("*p = %d\n", x); void(*p); } ------------------------------------ void(*p) { A(*p); } A(*p) { *p = 0; } **2. Do we have any difference between "CONST int p" and "int const p" ?