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

What is reverse function?

576


What is Gang of four design patterns

596


What is difference between module and function?

542


What is a memory leak in java?

547


What is sizeof in java?

559






What is a dynamic array java?

521


What are the difference between composition and inheritance in java?

515


When do we use synchronized methods in java?

584


Define max and min heap, also the search time of heap.

591


What are serialization and deserialization?

728


Who is the owner of java?

541


What is a static method in java?

539


Can a main method be declared final?

588


Which list does not allow duplicates in java?

514


Who developed java?

572