SlideShare a Scribd company logo
1 of 1
Download to read offline
1. (5 Points) Given the following program in C/C++, #include using namespace std; int main() { int
x,y; x=10; y=&x; printf("%p n", y); // print the address y=y+x; system("PAUSE"); return 0 ; } Output:
0039FD00 Press any key to continue... (a) (3 Points) What is the address of the variable y? (b) (2
Points) After the execution of the program, what is the value of x ?

More Related Content

More from adhikaribrothers

More from adhikaribrothers (20)

1 A firms production process uses labor L and capital K.pdf
1 A firms production process uses labor L and capital K.pdf1 A firms production process uses labor L and capital K.pdf
1 A firms production process uses labor L and capital K.pdf
 
1 A company may periodically undertake projects but these .pdf
1 A company may periodically undertake projects but these .pdf1 A company may periodically undertake projects but these .pdf
1 A company may periodically undertake projects but these .pdf
 
1 A dsallklar nelerdir A Oluturma Etkilerinde nasl bir rol.pdf
1 A dsallklar nelerdir A Oluturma Etkilerinde nasl bir rol.pdf1 A dsallklar nelerdir A Oluturma Etkilerinde nasl bir rol.pdf
1 A dsallklar nelerdir A Oluturma Etkilerinde nasl bir rol.pdf
 
1 A 32yearold man is admitted to the emergency department.pdf
1 A 32yearold man is admitted to the emergency department.pdf1 A 32yearold man is admitted to the emergency department.pdf
1 A 32yearold man is admitted to the emergency department.pdf
 
1 7 Find the Order of Growth of the algorithm Procedure .pdf
1 7 Find the Order of Growth of the algorithm Procedure .pdf1 7 Find the Order of Growth of the algorithm Procedure .pdf
1 7 Find the Order of Growth of the algorithm Procedure .pdf
 
1 A bag contains a collection of distinguishable marbles T.pdf
1 A bag contains a collection of distinguishable marbles T.pdf1 A bag contains a collection of distinguishable marbles T.pdf
1 A bag contains a collection of distinguishable marbles T.pdf
 
1 4 marks What external features of birds and sharks are.pdf
1 4 marks What external features of birds and sharks are.pdf1 4 marks What external features of birds and sharks are.pdf
1 4 marks What external features of birds and sharks are.pdf
 
1 5 pts Let X be a random variable uniformly distributed .pdf
1 5 pts Let X be a random variable uniformly distributed .pdf1 5 pts Let X be a random variable uniformly distributed .pdf
1 5 pts Let X be a random variable uniformly distributed .pdf
 
1 8 pts Show if a random variable XBinnp with the pmf .pdf
1 8 pts Show if a random variable XBinnp with the pmf .pdf1 8 pts Show if a random variable XBinnp with the pmf .pdf
1 8 pts Show if a random variable XBinnp with the pmf .pdf
 
1 8 Annotations 4 pts C code 4 pts A function with .pdf
1 8 Annotations 4 pts C code 4 pts A function with .pdf1 8 Annotations 4 pts C code 4 pts A function with .pdf
1 8 Annotations 4 pts C code 4 pts A function with .pdf
 
1 2000 ylndan bu yana ABD Hollywood film almalar iin k.pdf
1 2000 ylndan bu yana ABD Hollywood film almalar iin k.pdf1 2000 ylndan bu yana ABD Hollywood film almalar iin k.pdf
1 2000 ylndan bu yana ABD Hollywood film almalar iin k.pdf
 
1 6 points Which one of the two terms flavor or buck.pdf
1 6 points Which one of the two terms flavor or buck.pdf1 6 points Which one of the two terms flavor or buck.pdf
1 6 points Which one of the two terms flavor or buck.pdf
 
1 64 yanda bir erkek oyun oynadktan sonra hafif ila orta i.pdf
1 64 yanda bir erkek oyun oynadktan sonra hafif ila orta i.pdf1 64 yanda bir erkek oyun oynadktan sonra hafif ila orta i.pdf
1 64 yanda bir erkek oyun oynadktan sonra hafif ila orta i.pdf
 
1 4 2 It pelints y3 3 h 10 2 What is the defieition of dr.pdf
1 4 2 It pelints y3 3 h 10 2 What is the defieition of dr.pdf1 4 2 It pelints y3 3 h 10 2 What is the defieition of dr.pdf
1 4 2 It pelints y3 3 h 10 2 What is the defieition of dr.pdf
 
1 What are some of the opportunities and challenges that G.pdf
1  What are some of the opportunities and challenges that G.pdf1  What are some of the opportunities and challenges that G.pdf
1 What are some of the opportunities and challenges that G.pdf
 
1 4 pts Imagine that you have found a rock made almost en.pdf
1 4 pts Imagine that you have found a rock made almost en.pdf1 4 pts Imagine that you have found a rock made almost en.pdf
1 4 pts Imagine that you have found a rock made almost en.pdf
 
1 4 points Consider the word UNCOPYRIGHTABLE Assume th.pdf
1 4 points Consider the word UNCOPYRIGHTABLE Assume th.pdf1 4 points Consider the word UNCOPYRIGHTABLE Assume th.pdf
1 4 points Consider the word UNCOPYRIGHTABLE Assume th.pdf
 
1 _____ is the most important workrelated value for those.pdf
1  _____ is the most important workrelated value for those.pdf1  _____ is the most important workrelated value for those.pdf
1 _____ is the most important workrelated value for those.pdf
 
1 2 a1 2 3 bI fop panet A TH cell binds.pdf
1 2 a1 2 3 bI fop panet A TH cell binds.pdf1 2 a1 2 3 bI fop panet A TH cell binds.pdf
1 2 a1 2 3 bI fop panet A TH cell binds.pdf
 
1 2 3A Dendritic cell engulfs antigen processe.pdf
1 2 3A Dendritic cell engulfs antigen processe.pdf1 2 3A Dendritic cell engulfs antigen processe.pdf
1 2 3A Dendritic cell engulfs antigen processe.pdf
 

Recently uploaded

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Recently uploaded (20)

Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 

1 5 Points Given the following program in CC++ include.pdf

  • 1. 1. (5 Points) Given the following program in C/C++, #include using namespace std; int main() { int x,y; x=10; y=&x; printf("%p n", y); // print the address y=y+x; system("PAUSE"); return 0 ; } Output: 0039FD00 Press any key to continue... (a) (3 Points) What is the address of the variable y? (b) (2 Points) After the execution of the program, what is the value of x ?