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

p is a pointer and it holds address.
we are assigning 20 to p;it means pointer p points the value pointed by address 20.
so to show the value on address 20 you have give *p

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is conio h in c?

804


What will be your course of action for a push operation?

834


What is a pointer value and address in c?

811


Which type of language is c?

821


What is void c?

770


Write a program which returns the first non repetitive character in the string?

808


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

885


What is operator precedence?

867


Between macros and functions,which is better to use and why?

1792


What is the purpose of the preprocessor directive error?

904


Why can arithmetic operations not be performed on void pointers?

798


what do u mean by Direct access files? then can u explain about Direct Access Files?

1828


Who developed c language and when?

815


List the difference between a "copy constructor" and a "assignment operator"?

764


What is a structure member in c?

742