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

correct ans is
int *p ; // creating a pointer of integer type
*p=20; // we are creating memory for 20 and p is pointing to
it .
printf("%d",p); // prints p 's address

printf("%d",*p); // prints value pointed by p . i.e 20

wrong declarations
we
ERRORS 1.int *p=20;

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

683


What is the difference between far and near ?

677


what do the 'c' and 'v' in argc and argv stand for?

641


What is #pragma statements?

583


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

813






please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

1701


What is a const pointer in c?

666


Why is c known as a mother language?

740


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

7386


What is a global variable in c?

586


Why do we use namespace feature?

577


What is masking?

630


Explain what is the stack?

631


Explain logical errors? Compare with syntax errors.

618


Explain how do you convert strings to numbers in c?

591