wats the diference btwen constant pointer and pointer to a
constant.pls give examples.
Answer Posted / sanjay
Pointer to a consttant ::: such that the value to which
pointer points can't be changed
const int *ptr1=7
*ptr=8 // invalid
constant pointer :::: pointer direction can't be cheged .
int *const x =6;
x=7 or x=&i // invalid
Location of pointer can't be chenged.
| Is This Answer Correct ? | 18 Yes | 2 No |
Post New Answer View All Answers
how to count no of words,characters,lines in a paragraph.
Explain what is output redirection?
What is zero based addressing?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
What does the c in ctime mean?
How many keywords are there in c?
How many parameters should a function have?
ATM machine and railway reservation class/object diagram
how can I convert a string to a number?
How to establish connection with oracle database software from c language?
What are the similarities between c and c++?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
What is the best organizational structure?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1