what is pointer ? what is the use of pointer?

Answers were Sorted based on User's Feedback



what is pointer ? what is the use of pointer?..

Answer / m.karthiga

pointer is a variable it contains address of the another
variable..pointer saves the memory space then other
variables

Is This Answer Correct ?    9 Yes 1 No

what is pointer ? what is the use of pointer?..

Answer / naresh kaushik

pointer is a variable .but it is not a ordinary
variable.it contain the address of other variable and point
the memory locations dircetly.

Is This Answer Correct ?    2 Yes 0 No

what is pointer ? what is the use of pointer?..

Answer / gouse mohiddin

A Pointer is a variable which holds the memory address of
the another variable
pointers are used to save and find the memory address of
the another variable.
The syntax is as shown below. You start by specifying the
type of data stored in the location identified by the
pointer. The asterisk tells the compiler that you are
creating a pointer variable. Finally you give the name of
the variable.
type * variable name

Example:

int *ptr;
float *string;
Address operator:

Once we declare a pointer variable we must point it to
something we can do this by assigning to the pointer the
address of the variable you want to point as in the
following example:

ptr=#

This places the address where num is stores into the
variable ptr. If num is stored in memory 21260 address then
the variable ptr has the value 21260.

Is This Answer Correct ?    2 Yes 0 No

what is pointer ? what is the use of pointer?..

Answer / rama krishna sidhartha

Pointer is the address of the another variable.

It saves the memory space of another variables.

Is This Answer Correct ?    1 Yes 0 No

what is pointer ? what is the use of pointer?..

Answer / guest

pointer is pointing to the addresss location

Is This Answer Correct ?    1 Yes 1 No

what is pointer ? what is the use of pointer?..

Answer / sri harsha

pointer is lock to house.house is any data.mainly for
saving space,security we will use pointers.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Interview Questions

What is a pragma?

0 Answers  


a value that does not change during program execution a) variabe b) argument c) parameter d) none

0 Answers  


Write a program to print all permutations of a given string.

0 Answers   JPMorgan Chase,


What is the use of gets and puts?

0 Answers  


What is the difference between array and pointer in c?

0 Answers  






What is %d used for?

0 Answers  


Describe the steps to insert data into a singly linked list.

0 Answers  


Can i use Two or More Main Funtion in any C program.?

4 Answers  


12345 1234 123 12 1

2 Answers  


Explain is it better to bitshift a value than to multiply by 2?

0 Answers  


What is the equivalent code of the following statement in WHILE LOOP format?

0 Answers  


without using arithmatic operator convert an intger variable x into x+1

3 Answers  


Categories