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 ANSI C Standard?
Explain what is the difference between functions getch() and getche()?
What are the advantage of c language?
Why c is known as a mother language?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
What is sizeof in c?
Explain what does the function toupper() do?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
What is the importance of c in your views?
What is a stream water?
Explain what happens if you free a pointer twice?
Does free set pointer to null?
c program to compute AREA under integral
What happens if a header file is included twice?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9