What is the difference between constant pointer and pointer
to a constant. Give examples.
Answer Posted / prashant
the example given by Santosh for "Constant Pointer" is wrong .
Use
int * const p = &localVariable;
instead of const int *p = &localVariable;.
then we cant do p++ or p--;
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Who developed c language?
What will be the outcome of the following conditional statement if the value of variable s is 10?
What is integer constants?
What is the use of sizeof?
What is the difference between a free-standing and a hosted environment?
How to implement a packet in C
What is scope and lifetime of a variable in c?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
What is the explanation for modular programming?
Explain what is the heap?
What is #pragma statements?
Do you know what are the properties of union in c?
Why flag is used in c?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
Can one function call another?