What Is Pointer?

Answers were Sorted based on User's Feedback



What Is Pointer?..

Answer / sachin atre

Pointer is nothing but the variable which stores the address(memory location) of another variable.
Pointers are not supported in Java but they are applicable in c,c++ languages.

Is This Answer Correct ?    9 Yes 0 No

What Is Pointer?..

Answer / singh vikas

implements two ways of representing object pointers. (An
object pointer, C type object, contains a pointer to the
memory location of the object, or - for immediate object -
all bits of the object itself.) Both of them have some
things in common:

Is This Answer Correct ?    1 Yes 0 No

What Is Pointer?..

Answer / mohit choudhary

POINTER IS A SPECIAL VERIABLE WHICH CAN CONYTAIN A ADDRESS
OF THE ANOTHER VERIABLE IN THE CLASS

Is This Answer Correct ?    1 Yes 0 No

What Is Pointer?..

Answer / 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

More Core Java Interview Questions

What is a return in java?

0 Answers  


Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?

0 Answers  


What is the purpose of file class?

0 Answers  


What do you understand by weak reference?

0 Answers  


Explain restrictions for using anonymous inner classes?

0 Answers  


Java does not support multiple inheritance. how interface helps in the same?

5 Answers   TCS,


What are the characteristics provided in jdk1.6 apart from other versions?

3 Answers   TCS,


In which order the iterator iterates over collection?

0 Answers  


What are the types of exceptions?

0 Answers  


What is a Hash Table? What are the advantages of using a hash table?

0 Answers   Ciena,


Why string is popular hashmap key in java?

1 Answers  


Explain the significance of listiterator.

0 Answers  


Categories