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 / immanuel
printf("%p",p); // this prints the address to 20
printf("%d",p); //this prints the value itself.
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
What is fflush() function?
What are dangling pointers? How are dangling pointers different from memory leaks?
What is the use of pragma in embedded c?
How can I call a function with an argument list built up at run time?
Explain the difference between strcpy() and memcpy() function?
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
How can I sort more data than will fit in memory?
What is file in c preprocessor?
What are the features of c languages?
What is the difference between a string and an array?
Differentiate between the expression “++a” and “a++”?
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
What is the difference between memcpy and memmove?
Can a program have two main functions?
What is sizeof in c?