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
Is that possible to store 32768 in an int data type variable?
What is structure padding and packing in c?
What are the advantages of the functions?
What is the difference between constant pointer and constant variable?
How is a pointer variable declared?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
What is the use of parallelize in spark?
Can you tell me how to check whether a linked list is circular?
What are external variables in c?
What are c identifiers?
Explain how are portions of a program disabled in demo versions?
What is self-referential structure in c programming?
Write a program to check armstrong number in c?
if p is a string contained in a string?
What does %d do?