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 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.pdfalankartraders
 
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.pdfalankartraders
 
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.pdfalankartraders
 
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.pdfalankartraders
 
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.pdfalankartraders
 
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.pdfalankartraders
 
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.pdfalankartraders
 
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 .pdfalankartraders
 
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,.pdfalankartraders
 
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.pdfalankartraders
 
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.pdfalankartraders
 
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.pdfalankartraders
 
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.pdfalankartraders
 
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 .pdfalankartraders
 
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..pdfalankartraders
 
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.pdfalankartraders
 
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.pdfalankartraders
 
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.pdfalankartraders
 
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 .pdfalankartraders
 
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.pdfalankartraders
 

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

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 

Recently uploaded (20)

POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 

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.)