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

Is that possible to store 32768 in an int data type variable?

683


find the sum of two matrices and WAP for it.

620


What is c standard library?

684


How will you declare an array of three function pointers where each function receives two ints and returns a float?

767


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

1702






Explain how can you tell whether two strings are the same?

576


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

598


Explain the difference between the local variable and global variable in c?

587


Can you pass an entire structure to functions?

685


code for replace tabs with equivalent number of blanks

1627


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

605


What is difference between stdio h and conio h?

874


a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list

623


What is the use of parallelize in spark?

566


What does do in c?

599