wats the diference btwen constant pointer and pointer to a
constant.pls give examples.
Answer Posted / jamili reddy
int i =12;
int * const ptr = 24; //constant pointer
you can't change the ptr value
const int *ptr = 24;//ptr to a constant
int const * ptr = 24;//ptr to a constant
you can't change the value at ptr
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the purpose of the statement: strcat (S2, S1)?
What is spark map function?
Difference between macros and inline functions? Can a function be forced as inline?
Why is c so important?
What is the condition that is applied with ?: Operator?
What are the different types of control structures in programming?
Why do we use namespace feature?
What is the use of volatile?
What is null pointer in c?
int i=10; printf("%d %d %d", i, i=20, i);
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none
Differentiate between calloc and malloc.
What does the c preprocessor do?
What is assignment operator?