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

Why is python slower than c?

809


How do I determine whether a character is numeric, alphabetic, and so on?

856


Why static variable is used in c?

760


How many types of arrays are there in c?

775


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

914


Define recursion in c.

943


What is methods in c?

830


What is the purpose of main() function?

932


How are 16- and 32-bit numbers stored?

971


Explain the difference between strcpy() and memcpy() function?

771


Is there sort function in c?

785


Explain the difference between structs and unions in c?

762


What are multibyte characters?

847


How can I implement a delay, or time a users response, with sub-second resolution?

841


List out few of the applications that make use of Multilinked Structures?

1732