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


Please Help Members By Posting Answers For Below Questions

Can we change the value of #define in c?

586


How many main () function we can have in a project?

614


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

769


What is sizeof array?

613


What does the c preprocessor do?

623






How variables are declared in c?

573


Explain heap and queue.

589


Write the control statements in C language

650


What does. int *x[](); means ?

639


What is #include cctype?

580


in iso what are the common technological language?

1637


What is operator precedence?

644


Is flag a keyword in c?

682


A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(

1742


What is the best way of making my program efficient?

571