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 / udanesh

int *p=20 means
int *p;
p=20;
so when you print the value of p definitely you will get the output as 20 because the value of p is 20

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

854


What are the 5 elements of structure?

803


Differentiate call by value and call by reference?

740


Dont ansi function prototypes render lint obsolete?

801


WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

1624


What does calloc stand for?

835


what value is returned to operating system after program execution?

1804


What is structure padding and packing in c?

798


How do you determine the length of a string value that was stored in a variable?

849


What is clrscr in c?

877


What are the two types of structure?

792


What are all different types of pointers in c?

763


When should a far pointer be used?

781


What's the right way to use errno?

837


What is the use of a ‘’ character?

796