what is pointer ? what is the use of pointer?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
Explain how can I pad a string to a known length?
What is array in C
write a program to insert an element at the specified position in the given array in c language
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
What is putchar() function?
Why is void main used?
How to print "I Love My India" without using semi colon?
what is difference between #include<stdio.h> and #include"stdio.h"
Is fortran faster than c?
Are c and c++ the same?
How many types of operator or there in c?
How can I prevent other programmers from violating encapsulation by seeing the private parts of my class?