what is pointer ?
Answers were Sorted based on User's Feedback
Answer / amit kamble
POINTER HOLDS THE ADRESS OF THE OTHER VARIABLE;
Is This Answer Correct ? | 6 Yes | 1 No |
Answer / prakash dasari
pointer is also like an ordinary variable which can hold
some data. But the difference is it holds the memory
address where that particular variable is stored.
so pointer is a memory varible which holds the valid
address of similar type. that is integer pointer have to
use to hold the address of the integer variable to avoid
the unexpected results. so to store the float varible data
use float pointer only for datasafe.
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / ramakant kisan karnekar
Pointer is a value variable it stores the address of
another variable
ex
int a=10;
int *p;
p=&x;
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / s.s.venkatesh
Pointer is also a variable,that is used to refer the memory
location of the particular variable(that is pointer
variable).
In pointer,we can get address of the particular variable by
using ambuson(&) symbol.
we can get the value by using asterisk(*) symbol.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ravishankar b.m
pointer is a variable which holds the address of another
variable.
only integer pointer can be used for pointer.
eg: int *ptr
Is This Answer Correct ? | 1 Yes | 0 No |
pointer is a secondary constant and a derived data type which can hold a address or point to a particular memory location (LOGICALLY) of the same data type in which pointer variable has been declared......
syntax :
(data type) *variable_name;
integer pointer can hold only integer variable address
character pointer can hold only character variable address
floating pointer can hold only float variable address
thank u
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / deepa.g
Pointer is stores the address of the another variable.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / jai
It is variable that holds the address of another variable..
As ordinary varible pointer also has datatype. So, It
stores only address of the variable of the same type.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ankith.v
pointer Is a Variable.
A Variable which Stores The Address Of Another Variable is
called as Pointer
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rina
pointer contains memory adresses as teir values since tese
memory addresses are the locations in the computer memory
are stored.
Is This Answer Correct ? | 0 Yes | 0 No |
What is the modulus operator?
how many keywords are available in 'c' language a) 32 b) 34 c) 45 d) 48
10. Study the code: void show() main() { show(); } void show (char *s) { printf("%sn",s); } What will happen if it is compiled & run on an ANSI C Compiler? A)It will compile & nothing will be printed when it is executed B)it will compile but not link C)the compiler will generate an error D)the compiler will generate a warning
main() { int *ptr=(int*)malloc(sizeof(int)); *ptr=4; printf("%d",(*ptr)+++*ptr++); }
5 Answers Vector, Vector Solutions,
Explain how can I read and write comma-delimited text?
Is there something we can do in C but not in C++? Declare variable names that are keywords in C++ but not C.
What is dynamic dispatch in c++?
how to find the largest element of array without using relational operater?
How was c created?
Which is not valid in C? 1) class aClass{public:int x;} 2) /* A comment */ 3) char x=12;
Explain how do you print only part of a string?
How to implement variable argument functions ?