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

Answer Posted / sree

normal variable stores a value of the given datatype where
as the pointer variable stores the address of a variable.
for example
int n=10;
int *p;
p=&n;
here p is a pointer variable and n is a normal
variable.p stores the address of n where as n stores an
integer value.
*p prints the value of n,p prints the address
of n.

Is This Answer Correct ?    117 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

608


Is null a keyword in c?

743


WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

1603


What are the 4 types of unions?

619


When should a type cast not be used?

633






What is scanf () in c?

670


How can you find the day of the week given the date?

623


Explain built-in function?

601


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

1486


What is the purpose of type declarations?

683


Why are algorithms important in c program?

625


What is a substring in c?

595


Do pointers take up memory?

670


What is difference between class and structure?

578


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

2381