what is the difference between normal variables and pointer
variables..............

Answer Posted / nibedita

Pointers will store the variable address and normal variable
will store the variable value. But if you will declare int *p;
int i=10; and you want to accsess the memory of i you have
to write p=&i; But i can access directly the memory adress
of variable through printf("%d",&i); Then wht is the
difference between pointer and normal variable?

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain data types & how many data types supported by c?

585


Why is c platform dependent?

623


Why c is called top down?

626


Why do we use null pointer?

607


What is difference between structure and union in c programming?

569






What are volatile variables in c?

519


When can you use a pointer with a function?

568


Why C language is a procedural language?

622


Explain the array representation of a binary tree in C.

728


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

726


what are non standard function in c

1434


What are the different categories of functions in c?

643


What does return 1 means in c?

586


Why is structure important for a child?

603


If errno contains a nonzero number, is there an error?

805