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
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
What is the difference between far and near ?
what do the 'c' and 'v' in argc and argv stand for?
What is #pragma statements?
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
What is a const pointer in c?
Why is c known as a mother language?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
What is a global variable in c?
Why do we use namespace feature?
What is masking?
Explain what is the stack?
Explain logical errors? Compare with syntax errors.
Explain how do you convert strings to numbers in c?