int *p=20;
if u print like dis printf("%d",p);
o\p:- 20; how is it possible?
plz give me the explanation.
Answer Posted / sangram
p is a pointer and it holds address.
we are assigning 20 to p;it means pointer p points the value pointed by address 20.
so to show the value on address 20 you have give *p
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Discuss the function of conditional operator, size of operator and comma operator with examples.
Difference between Function to pointer and pointer to function
What is the use of typedef in structure in c?
Explain how are portions of a program disabled in demo versions?
What is f'n in math?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Can a pointer be volatile in c?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
What is a void pointer? When is a void pointer used?
How can I delete a file?
Why is %d used in c?
What is meant by initialization and how we initialize a variable?
What is a method in c?
How arrays can be passed to a user defined function
What is a node in c?