What Is Pointer?

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


Please Help Members By Posting Answers For Below Questions

How do you break a loop?

555


What is navigable map in java?

512


What are the 2 types of java programs?

558


What happens when a thrown exception is not handled?

571


What do heavy weight components mean in java programming?

515






What is java jit compilers?

554


Name few java.lang classes introduced with java 8 ?

531


What is the major difference between linkedlist and arraylist?

504


I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?

632


How does the java compiler work?

521


What is increment in java?

515


What do you mean by constructor?

540


What is the benefit of lambda expressions?

486


Why does java not support operator overloading?

654


Name the components that are termed to be Heavy-weight component but available in Light-weight components?

1980