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
What is the difference between strcpy() and memcpy() function in c programming?
For what purpose null pointer used?
how could explain about job profile
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
What are the basic data types associated with c?
What are two dimensional arrays alternatively called as?
Why c is called a middle level language?
What is meant by high-order and low-order bytes?
Who developed c language?
how do you execute a c program in unix.
Explain what is the purpose of "extern" keyword in a function declaration?
What is the size of enum in bytes?
Was 2000 a leap year?
What are the primitive data types in c?
Explain the meaning of keyword 'extern' in a function declaration.