What Is Pointer?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
What happens when you assigned a 'double' value to a 'String'?
what is singleton in java?
What do you mean by an object in java?
What is more advisable to create a thread, by implementing a Runnable interface or by extending Thread class?
What do bitwise operators do?
Why there is no call by reference in java?
class A{ class B{ } } in which name u save the file,its the program compile?
can we add two numbers without using arthematic operators? if possible how?
what is deadlock? : Java thread
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
What is parse method?
How many ways can you break a singleton class in java?