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
Do pointers store the address of value or the actual value of a variable?
What is a void pointer in c?
What are the advantages and disadvantages of a heap?
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
What is difference between structure and union with example?
What is the use of printf() and scanf() functions?
What is main return c?
Describe the header file and its usage in c programming?
What is string concatenation in c?
write a program to print largest number of each row of a 2D array
Differentiate between a for loop and a while loop? What are it uses?
Who is the founder of c language?
Explain how do you list files in a directory?
Explain how do you print an address?
What is a good data structure to use for storing lines of text?