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 / santhi perumal
We are assigning 20 to *p. Which means we are assigning the
address 20 to p. when you want to print the address of the
pointer variable we have to print just p not *p. if you want
to print the value stored in the particular address we need
to print like *p. in this case we are printing p so it will
give the address 20 to it.
| Is This Answer Correct ? | 31 Yes | 5 No |
Post New Answer View All Answers
Why is this loop always executing once?
What is the difference between arrays and pointers?
What is keyword with example?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
What is #include called?
What is the difference between text and binary i/o?
What is #define used for in c?
What is static function in c?
Can include files be nested?
What do you mean by keywords in c?
what is the syallabus of computer science students in group- 1?
What's a good way to check for "close enough" floating-point equality?
How main function is called in c?
What is structure pointer in c?