Answer Posted / srsabariselvan
constant Pointer:
we can't modify the value of pointer.i.e.,value of
pointer is constant.
Declaration:
int i=2,j;
int const *p;
p=&i;
p=&j;
Pointer Constant:
in case of Pointer constant, we can't modify the address of
pointer.i.e,address stored in pointer is constant.
This must be intialized
Declaration:
int i=2;
int *const p=&i;
*p=4;
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain how do you determine a file’s attributes?
Define Array of pointers.
what is a constant pointer in C
What are the 4 types of programming language?
What is the difference between typedef struct and struct?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
Discuss the function of conditional operator, size of operator and comma operator with examples.
What does static variable mean in c?
Why doesnt that code work?
What is the use of printf() and scanf() functions?
Is this program statement valid? INT = 10.50;
Write a program which returns the first non repetitive character in the string?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
Write a program to reverse a linked list in c.