Question
What type of address is printed by following program

Question 15 What type of address is printed by the following program: include <stdio.ho int maino int x; printf(Xp\n, & x);
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Ans: virtual

Explanation:

The variable which are defined in the program will be stored in different memory locations based on type of data.basically we store the initialized data and uninitialised data will be stored in different memory location.

Whenever you will print the address of any variable it will print the address of virtual memory address, these virtual memory address will be keep on changing whenever program is running,so we don't know exactly what is the address of variables.

Once we get the virtual address then we will find the appropriate physical address mapping to those varaibles in operating system level

Physical address we can't see unless working at the kernel level of programming.

So it will print the virtual address of varaible everytime.

Add a comment
Know the answer?
Add Answer to:
What type of address is printed by following program Question 15 What type of address is...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT