SlideShare a Scribd company logo
1 of 1
Download to read offline
The following program is compiled and run on a MIPS computer[13 points].
1 int main() {
2 int i;
3 int four_ints[4];
4 char* c;
5
6 for(i=0; i<4; i++) four_ints[i] = 2;
7
8 c = (char*)four_ints;
9 for(i=0; i<4; i++) c[i] = 1;
10
11 printf("%xn", four_ints[2]);
12 }
What does it print out? (The %x in printf is used print out a word in hexadecimal format.)

More Related Content

More from alankartraders

The Greek Sovereign Debt Crisis When the euro was established, som.pdf
The Greek Sovereign Debt Crisis When the euro was established, som.pdfThe Greek Sovereign Debt Crisis When the euro was established, som.pdf
The Greek Sovereign Debt Crisis When the euro was established, som.pdf
alankartraders
 
The following table reports results from a linear probability model,.pdf
The following table reports results from a linear probability model,.pdfThe following table reports results from a linear probability model,.pdf
The following table reports results from a linear probability model,.pdf
alankartraders
 
The Chilean Mine Disaster A Case StudyOn August 5, 2010, 33 Chile.pdf
The Chilean Mine Disaster A Case StudyOn August 5, 2010, 33 Chile.pdfThe Chilean Mine Disaster A Case StudyOn August 5, 2010, 33 Chile.pdf
The Chilean Mine Disaster A Case StudyOn August 5, 2010, 33 Chile.pdf
alankartraders
 

More from alankartraders (20)

The image above shows a SNP analysis on 7 individuals (numbered 9-15.pdf
The image above shows a SNP analysis on 7 individuals (numbered 9-15.pdfThe image above shows a SNP analysis on 7 individuals (numbered 9-15.pdf
The image above shows a SNP analysis on 7 individuals (numbered 9-15.pdf
 
The Intergovernmental Panel on Climate Change forecasts future clima.pdf
The Intergovernmental Panel on Climate Change forecasts future clima.pdfThe Intergovernmental Panel on Climate Change forecasts future clima.pdf
The Intergovernmental Panel on Climate Change forecasts future clima.pdf
 
The incomecapital distinction is crucial in taxation law. In Eisner.pdf
The incomecapital distinction is crucial in taxation law. In Eisner.pdfThe incomecapital distinction is crucial in taxation law. In Eisner.pdf
The incomecapital distinction is crucial in taxation law. In Eisner.pdf
 
The Greek Sovereign Debt Crisis When the euro was established, som.pdf
The Greek Sovereign Debt Crisis When the euro was established, som.pdfThe Greek Sovereign Debt Crisis When the euro was established, som.pdf
The Greek Sovereign Debt Crisis When the euro was established, som.pdf
 
The following transactions took place for Smart Solutions Incorporat.pdf
The following transactions took place for Smart Solutions Incorporat.pdfThe following transactions took place for Smart Solutions Incorporat.pdf
The following transactions took place for Smart Solutions Incorporat.pdf
 
The global political environment can be understood via an appreciati.pdf
The global political environment can be understood via an appreciati.pdfThe global political environment can be understood via an appreciati.pdf
The global political environment can be understood via an appreciati.pdf
 
The Government of Quebec is the recipient of several types of transf.pdf
The Government of Quebec is the recipient of several types of transf.pdfThe Government of Quebec is the recipient of several types of transf.pdf
The Government of Quebec is the recipient of several types of transf.pdf
 
The graph below shows the marginal cost, average variable cost, and .pdf
The graph below shows the marginal cost, average variable cost, and .pdfThe graph below shows the marginal cost, average variable cost, and .pdf
The graph below shows the marginal cost, average variable cost, and .pdf
 
The following table reports results from a linear probability model,.pdf
The following table reports results from a linear probability model,.pdfThe following table reports results from a linear probability model,.pdf
The following table reports results from a linear probability model,.pdf
 
The following table contains the probability distribution for x = th.pdf
The following table contains the probability distribution for x = th.pdfThe following table contains the probability distribution for x = th.pdf
The following table contains the probability distribution for x = th.pdf
 
The difference between actual and standard cost that may indicate th.pdf
The difference between actual and standard cost that may indicate th.pdfThe difference between actual and standard cost that may indicate th.pdf
The difference between actual and standard cost that may indicate th.pdf
 
The Chilean Mine Disaster A Case StudyOn August 5, 2010, 33 Chile.pdf
The Chilean Mine Disaster A Case StudyOn August 5, 2010, 33 Chile.pdfThe Chilean Mine Disaster A Case StudyOn August 5, 2010, 33 Chile.pdf
The Chilean Mine Disaster A Case StudyOn August 5, 2010, 33 Chile.pdf
 
The city of Raleigh has 10200 registered voters. There are two candi.pdf
The city of Raleigh has 10200 registered voters. There are two candi.pdfThe city of Raleigh has 10200 registered voters. There are two candi.pdf
The city of Raleigh has 10200 registered voters. There are two candi.pdf
 
The central limits theorem tells us Question 3 options1.The mean .pdf
The central limits theorem tells us Question 3 options1.The mean .pdfThe central limits theorem tells us Question 3 options1.The mean .pdf
The central limits theorem tells us Question 3 options1.The mean .pdf
 
The CPI (consumer price index) measures ________ and ________.1..pdf
The CPI (consumer price index) measures ________ and ________.1..pdfThe CPI (consumer price index) measures ________ and ________.1..pdf
The CPI (consumer price index) measures ________ and ________.1..pdf
 
The country of origin is ITALY As you begin to explore opportuni.pdf
The country of origin is ITALY As you begin to explore opportuni.pdfThe country of origin is ITALY As you begin to explore opportuni.pdf
The country of origin is ITALY As you begin to explore opportuni.pdf
 
The congressman in the AEI event (and authors of the report in his t.pdf
The congressman in the AEI event (and authors of the report in his t.pdfThe congressman in the AEI event (and authors of the report in his t.pdf
The congressman in the AEI event (and authors of the report in his t.pdf
 
The Big Five Model of personality has become a standard framework fo.pdf
The Big Five Model of personality has become a standard framework fo.pdfThe Big Five Model of personality has become a standard framework fo.pdf
The Big Five Model of personality has become a standard framework fo.pdf
 
The concept of Total Quality Management (TQM), consists of a number .pdf
The concept of Total Quality Management (TQM), consists of a number .pdfThe concept of Total Quality Management (TQM), consists of a number .pdf
The concept of Total Quality Management (TQM), consists of a number .pdf
 
The composite scores of individual students on the ACT college entra.pdf
The composite scores of individual students on the ACT college entra.pdfThe composite scores of individual students on the ACT college entra.pdf
The composite scores of individual students on the ACT college entra.pdf
 

Recently uploaded

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Recently uploaded (20)

Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
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
 
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
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 

The following program is compiled and run on a MIPS computer[13 poin.pdf

  • 1. The following program is compiled and run on a MIPS computer[13 points]. 1 int main() { 2 int i; 3 int four_ints[4]; 4 char* c; 5 6 for(i=0; i<4; i++) four_ints[i] = 2; 7 8 c = (char*)four_ints; 9 for(i=0; i<4; i++) c[i] = 1; 10 11 printf("%xn", four_ints[2]); 12 } What does it print out? (The %x in printf is used print out a word in hexadecimal format.)