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

/*int *p=20;
is same as*/
int *p;
p=20;
so p having address of an integer value;
so
printf("%d,%u",p,p);
will give you answer 20,20

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is exit() function?

561


What is the use of pragma in embedded c?

592


Why array is used in c?

553


Using which language Test cases are added in .ptu file of RTRT unit testing???

3602


Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

1594






What is strcpy() function?

657


Are enumerations really portable?

596


Compare interpreters and compilers.

639


Do you have any idea how to compare array with pointer in c?

604


In C programming, what command or code can be used to determine if a number of odd or even?

622


What is pointers in c?

658


What 'lex' does?

719


What is the use of pointers in C?

620


will u please send me the placement papers to my mail???????????????????

1367


Can a program have two main functions?

572