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 / valli
int *p=20;
means
int *p;
p=20;
so the address of p is 20
printf("%d",p);
it prints 20 because now the base address of p is 20
even if we print as
printf("%u",p);
the o/p will be 20
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
Dont ansi function prototypes render lint obsolete?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
Is c# a good language?
How to delete a node from linked list w/o using collectons?
What is c++ used for today?
Is it better to bitshift a value than to multiply by 2?
What are the properties of union in c?
what is the difference between class and unio?
What math functions are available for integers? For floating point?
Can we compile a program without main() function?
What is a 'null pointer assignment' error?
List the difference between a 'copy constructor' and a 'assignment operator' in C?
Describe wild pointers in c?
What is the difference between variable declaration and variable definition in c?
Write a program to check whether a number is prime or not using c?