what is pointers

Answers were Sorted based on User's Feedback



what is pointers..

Answer / ramya

pointer is a memory variable that stores the address of the
another variabe

Is This Answer Correct ?    55 Yes 0 No

what is pointers..

Answer / arun

A pointer is a programming language data type whose value
refers directly to (or "points to") another value stored
elsewhere in the computer memory using its address.A pointer
references a location in memory, and obtaining the value at
the location a pointer refers to is known as dereferencing
the pointer.

Is This Answer Correct ?    21 Yes 5 No

what is pointers..

Answer / umashankar mishra

pointer is a variable which is used to store the adress of
another variable
syntax:
int *ptr
* symbole is used to defined the pointer

Is This Answer Correct ?    8 Yes 0 No

what is pointers..

Answer / p.madhupriya

pointer is a variable that points to address of another variable

Is This Answer Correct ?    3 Yes 0 No

what is pointers..

Answer / durgesh jaiswal

pointer is a memory variable which holds the address of another variable.........
syntax-*ptr

Is This Answer Correct ?    2 Yes 0 No

what is pointers..

Answer / backiya

pointer is a memory variable...
it's stored address in another new variable

Is This Answer Correct ?    1 Yes 0 No

what is pointers..

Answer / ramesh bhumarapu

Pointer is a Reference Variable...
which contains address of another variables

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

What is the full form of oops?

0 Answers  


WHAT IS THE ACTUAL DEFINATION OF OBJECT AND THE CLASS IN ONE SINGLE LINE WHICH THE INTERVIEWER WANT TO LISTEN.

11 Answers  


Difference between over loading and over ridding?

12 Answers   CTS, Patni, Softvision Solution,


WAP to generate 2n+1 lines of the following pattern on the computer screen:

2 Answers  


The company is a fake company asking for money of RS10000 while training and not offering a job after training. My humble request to you people not to attend Astersys interview

1 Answers   Astersys,






What do we mean by a hidden argument in a function?

1 Answers   TCL,


Can we have a private constructor ?

12 Answers   HSBC, Ness Technologies, TCS, Wipro,


What is multilevel inheritance in oop?

0 Answers  


How do you use inheritance in unity?

0 Answers  


What is a scope operator and tell me its functionality?

3 Answers   emc2,


What is the difference between a constructor and a destructor?

0 Answers  


Question In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Question Submitted By :: Sunil Kumar I also faced this Question!! Rank Answer Posted By Re: In a class, there is a reference or pointer of an object of another class embedded, and the memory is either allocated or assigned to the new object created for this class. In the constructor, parameters are passed to initialize the data members and the embedded object reference to get inialized. What measures or design change should be advised for proper destruction and avioding memory leaks, getting pointers dangling for the embedded object memory allocation? Please suggest. Answer # 1 use copy constructors 0 Shanthila There is something to be taken care in destructor, in copy constructor, suppose the memory is assigned to the embedded member object pointer with the parameter passed value, but if some other objects of different class also are pointing to this memory, then if some one deletes the object then this class member pointer object will become dangling, or if the object is not deleted properly then there will be memory leak. Please suggest the design change required to handle or avoid this situation

0 Answers   TCS,


Categories