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 / yogi
int *p=20;
This is like int *p;p=20;
printf("%d",p);It prints p properly as 20;
printf("%d",*p);It means deference the value at address 20,
which is invalid .
If we try to run,as address 20 is invalid and it tries to
fetch the value at address 20,signal 11 sent to that process
i.e it dumps core with segmentation fault
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
main() { printf("hello"); fork(); }
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
Can one function call another?
What does typeof return in c?
What is #include cctype?
What is the difference between pure virtual function and virtual function?
Why do we use static in c?
Which built-in library function can be used to match a patter from the string?
What is static and volatile in c?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What are the features of the c language?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
Is that possible to store 32768 in an int data type variable?
Is javascript written in c?
How does struct work in c?