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

Do pointers store the address of value or the actual value of a variable?

814


What is a void pointer in c?

827


What are the advantages and disadvantages of a heap?

907


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

1663


What is difference between structure and union with example?

803


What is the use of printf() and scanf() functions?

814


What is main return c?

725


Describe the header file and its usage in c programming?

814


What is string concatenation in c?

767


write a program to print largest number of each row of a 2D array

2083


Differentiate between a for loop and a while loop? What are it uses?

901


Who is the founder of c language?

876


Explain how do you list files in a directory?

819


Explain how do you print an address?

901


What is a good data structure to use for storing lines of text?

817