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 FIFO?
What is return in c programming?
In C language what is a 'dangling pointer'?
Explain the difference between the local variable and global variable in c?
What are types of structure?
How reliable are floating-point comparisons?
What are the application of void data type in c?
How is a macro different from a function?
Explain high-order and low-order bytes.
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
How can I send mail from within a c program?
How many main () function we can have in a project?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
Which one would you prefer - a macro or a function?
Explain how can I write functions that take a variable number of arguments?