Answer Posted / n.v.swami reddy
pointer is variable which holds the address of nother
variable is called pointer.
pointer concept does not support the java.it only for c,c++,
EXAMPLE PROGRAM FOR C:
MAIN()
{
int *a=25;/*it print the value address of the a variable
value*/
int b=a;/*a value assign b*/
int c=&b;/*it print the value of the b*/
printf("%d",*a);
printf("%d",b);
printf("%d",c);
getch();
}
OUTPUT:
245 ADDRESS OF A
25
25
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is reverse function?
What is Gang of four design patterns
What is difference between module and function?
What is a memory leak in java?
What is sizeof in java?
What is a dynamic array java?
What are the difference between composition and inheritance in java?
When do we use synchronized methods in java?
Define max and min heap, also the search time of heap.
What are serialization and deserialization?
Who is the owner of java?
What is a static method in java?
Can a main method be declared final?
Which list does not allow duplicates in java?
Who developed java?