what is pointer?

Answer Posted / likhit gatagat

pointers in C are variables storing address of some another
memory variable/location to which they are pointing

e.g: int *p;
int s;
p=&s;

now if s has memory address 101 then p will be storing
this address i.e pointing to variable s

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why array is used in c?

788


What is the difference between exit() and _exit() function?

805


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

869


What are categories used for in c?

819


Write a program to use switch statement.

897


How does #define work?

852


Is null always defined as 0(zero)?

834


What is dynamic memory allocation?

1078


Which is better between malloc and calloc?

912


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

3952


Explain the use of function toupper() with and example code?

880


WHAT IS THE DEFINATION OF IN TECHNOLOGY AND OFF TECHNOLOGY ?

2112


What are loops c?

818


How are pointers declared in c?

811


For what purpose null pointer used?

825