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 / sateeshbabu aluri

we are not printing the address of variable
it mens &p;
we are printing value of p.
so,P=20 will be the o/p.

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When is a “switch” statement preferable over an “if” statement?

641


How to get string length of given string in c?

604


write a c program for swapping two strings using pointer

2090


Why do we need functions in c?

551


What is volatile variable in c?

654






What is advantage of pointer in c?

685


How can I manipulate strings of multibyte characters?

631


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

665


How can variables be characterized?

1645


Explain what is the difference between functions abs() and fabs()?

613


What is uint8 in c?

636


Write a program to print factorial of given number using recursion?

599


What is a void * in c?

589


Differentiate between null and void pointers.

627


the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

1793