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

printf("%p",p); // this prints the address to 20

printf("%d",p); //this prints the value itself.

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain pointers in c programming?

630


Mention four important string handling functions in c languages .

619


What's the difference between constant char *p and char * constant p?

651


How do you determine a file’s attributes?

598


What is extern c used for?

571






What is c system32 taskhostw exe?

582


What's the best way of making my program efficient?

621


a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor

635


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

574


Why c language?

642


Explain what is page thrashing?

605


What is linear search?

678


What are the types of data types and explain?

665


How do we declare variables in c?

561


What is external variable in c?

607