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

2.main { int x,j,k; j=k=6;x=2; x=j*k; printf("%d", x);

9 Answers   HCL, Tech Mahindra,


simple program for virtual function?

1 Answers  


In cryptography, you could often break the algorithm if you know what was the original (plain) text that was encoded into the current ciphertext. This is called the plain text attack. In this simple problem, we illustrate the plain text attack on a simple substitution cipher encryption, where you know each letter has been substituted with a different letter from the alphabet but you don’t know what that letter is. You are given the cipherText as the input string to the function getwordSets(). You know that a plain text "AMMUNITION" occurs somewhere in this cipher text. Now, you have to find out which sets of characters corresponds to the encrypted form of the "AMMUNITION". You can assume that the encryption follows simple substitution only. [Hint: You could use the pattern in the "AMMUNITION" like MM occurring twice together to identify this]

0 Answers   Infosys,


Can we change the value of constant variable in c?

0 Answers  


What are the different types of C instructions?

0 Answers   InterGraph,






PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

0 Answers  


In C programming, how do you insert quote characters (‘ and “) into the output screen?

0 Answers  


#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }

1 Answers   Vector India,


write a pgm to print 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1

3 Answers  


I have seen function declarations that look like this

0 Answers  


write a c program to add two integer numbers without using arithmetic operator +

13 Answers   Value Labs,


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

0 Answers  


Categories