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
What are type modifiers in c?
Can you assign a different address to an array tag?
Write a program to reverse a string.
What is getch?
What is pass by reference in c?
What is array in C
What is 1f in c?
Write a program which returns the first non repetitive character in the string?
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above
Write a program in "C" to calculate the root of a quadratic equation ax^2+bx+c=0, where the value of a,b & c are known.
What is header file definition?
What is clrscr ()?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
What does the c preprocessor do?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?