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 collections framework?
What is an example of a boolean?
How do I print a “?
Difference between collection, collection and collections in java?
Which is better stringbuffer or stringbuilder?
Can we have return statement in finally clause? What will happen?
What is the benefit of using enum to declare a constant?
What is static and final keyword in java?
Differentiate between nested and inner class in java.
What is java Applet?
What is final keyword in java? Give an example.
What is string builder in java?
When does a class need a virtual destructor?
How to connect to a remote database using Applet?
How do you check if a string is lexicographically in java?