SlideShare a Scribd company logo
What is going to be the output of the following program: #include voidfM (int m[10]) {for
(int i = 0; i
Solution
#include
void fM(int m[10])
{int i;
for( i=0;i<10;i+=2)
{
m[i]=m[i]+2;
}
}
int main()
{
int iarray[10]={2,4,7,9,11,23};
fM(iarray);
printf("%d %d %d ",iarray[0],iarray[1],iarray[2] );
return 0;
}
=============================
output:
4 4 9
It simply adde 2 to number at even position for 2 to 10;

More Related Content

More from footsmart1

There are two major groups of seed plants, gymnosperms (Exercise 24) .pdf
There are two major groups of seed plants, gymnosperms (Exercise 24) .pdfThere are two major groups of seed plants, gymnosperms (Exercise 24) .pdf
There are two major groups of seed plants, gymnosperms (Exercise 24) .pdf
footsmart1
 
The steps in the closing process are (1) close credit balances in re.pdf
The steps in the closing process are (1) close credit balances in re.pdfThe steps in the closing process are (1) close credit balances in re.pdf
The steps in the closing process are (1) close credit balances in re.pdf
footsmart1
 
The positron decay of ^15 O goes directly to the ground state of ^15 .pdf
The positron decay of ^15 O goes directly to the ground state of ^15 .pdfThe positron decay of ^15 O goes directly to the ground state of ^15 .pdf
The positron decay of ^15 O goes directly to the ground state of ^15 .pdf
footsmart1
 
The disease bullous pemphigoid results in the destruction of protein.pdf
The disease bullous pemphigoid results in the destruction of protein.pdfThe disease bullous pemphigoid results in the destruction of protein.pdf
The disease bullous pemphigoid results in the destruction of protein.pdf
footsmart1
 
Student Outcome f the broad education necessary to understand th.pdf
Student Outcome f the broad education necessary to understand th.pdfStudent Outcome f the broad education necessary to understand th.pdf
Student Outcome f the broad education necessary to understand th.pdf
footsmart1
 
QUESTION 8 1.00000 P Financial intermediaries are different from inve.pdf
QUESTION 8 1.00000 P Financial intermediaries are different from inve.pdfQUESTION 8 1.00000 P Financial intermediaries are different from inve.pdf
QUESTION 8 1.00000 P Financial intermediaries are different from inve.pdf
footsmart1
 
Post your response to the following focus questionsDescribe a sol.pdf
Post your response to the following focus questionsDescribe a sol.pdfPost your response to the following focus questionsDescribe a sol.pdf
Post your response to the following focus questionsDescribe a sol.pdf
footsmart1
 
Please fill in the code, which only need to add code in the adju.pdf
Please fill in the code, which only need to add code in the adju.pdfPlease fill in the code, which only need to add code in the adju.pdf
Please fill in the code, which only need to add code in the adju.pdf
footsmart1
 
Linear AlgebraHello. I need help with my practice final. I am not .pdf
Linear AlgebraHello. I need help with my practice final. I am not .pdfLinear AlgebraHello. I need help with my practice final. I am not .pdf
Linear AlgebraHello. I need help with my practice final. I am not .pdf
footsmart1
 
Many nations, including the US, already maintain a national DNA data.pdf
Many nations, including the US, already maintain a national DNA data.pdfMany nations, including the US, already maintain a national DNA data.pdf
Many nations, including the US, already maintain a national DNA data.pdf
footsmart1
 
implement the add() method for min-heappublic class Heap {    .pdf
implement the add() method for min-heappublic class Heap {    .pdfimplement the add() method for min-heappublic class Heap {    .pdf
implement the add() method for min-heappublic class Heap {    .pdf
footsmart1
 
i need the complete answers as soon as possibleSolutionUNI.pdf
i need the complete answers as soon as possibleSolutionUNI.pdfi need the complete answers as soon as possibleSolutionUNI.pdf
i need the complete answers as soon as possibleSolutionUNI.pdf
footsmart1
 
How are nuclear pores and porins in the membrane differentSolut.pdf
How are nuclear pores and porins in the membrane differentSolut.pdfHow are nuclear pores and porins in the membrane differentSolut.pdf
How are nuclear pores and porins in the membrane differentSolut.pdf
footsmart1
 
How many allotropic forms does uranium have Discuss the effect of a.pdf
How many allotropic forms does uranium have Discuss the effect of a.pdfHow many allotropic forms does uranium have Discuss the effect of a.pdf
How many allotropic forms does uranium have Discuss the effect of a.pdf
footsmart1
 
How does C2 compare to various security and encryption methodsa. .pdf
How does C2 compare to various security and encryption methodsa. .pdfHow does C2 compare to various security and encryption methodsa. .pdf
How does C2 compare to various security and encryption methodsa. .pdf
footsmart1
 
Explain homologous recombination between human X and Y chromosomes..pdf
Explain homologous recombination between human X and Y chromosomes..pdfExplain homologous recombination between human X and Y chromosomes..pdf
Explain homologous recombination between human X and Y chromosomes..pdf
footsmart1
 
Explain the differences between a stateless and a stateful firewall..pdf
Explain the differences between a stateless and a stateful firewall..pdfExplain the differences between a stateless and a stateful firewall..pdf
Explain the differences between a stateless and a stateful firewall..pdf
footsmart1
 
By looking at the skeleton of a python, a boa contricor and a legles.pdf
By looking at the skeleton of a python, a boa contricor and a legles.pdfBy looking at the skeleton of a python, a boa contricor and a legles.pdf
By looking at the skeleton of a python, a boa contricor and a legles.pdf
footsmart1
 
Explain what we mean by Ride with vehicles.SolutionRide.pdf
Explain what we mean by Ride with vehicles.SolutionRide.pdfExplain what we mean by Ride with vehicles.SolutionRide.pdf
Explain what we mean by Ride with vehicles.SolutionRide.pdf
footsmart1
 
File PrintCoded.java (shown above) contains an incomplete program. T.pdf
File PrintCoded.java (shown above) contains an incomplete program. T.pdfFile PrintCoded.java (shown above) contains an incomplete program. T.pdf
File PrintCoded.java (shown above) contains an incomplete program. T.pdf
footsmart1
 

More from footsmart1 (20)

There are two major groups of seed plants, gymnosperms (Exercise 24) .pdf
There are two major groups of seed plants, gymnosperms (Exercise 24) .pdfThere are two major groups of seed plants, gymnosperms (Exercise 24) .pdf
There are two major groups of seed plants, gymnosperms (Exercise 24) .pdf
 
The steps in the closing process are (1) close credit balances in re.pdf
The steps in the closing process are (1) close credit balances in re.pdfThe steps in the closing process are (1) close credit balances in re.pdf
The steps in the closing process are (1) close credit balances in re.pdf
 
The positron decay of ^15 O goes directly to the ground state of ^15 .pdf
The positron decay of ^15 O goes directly to the ground state of ^15 .pdfThe positron decay of ^15 O goes directly to the ground state of ^15 .pdf
The positron decay of ^15 O goes directly to the ground state of ^15 .pdf
 
The disease bullous pemphigoid results in the destruction of protein.pdf
The disease bullous pemphigoid results in the destruction of protein.pdfThe disease bullous pemphigoid results in the destruction of protein.pdf
The disease bullous pemphigoid results in the destruction of protein.pdf
 
Student Outcome f the broad education necessary to understand th.pdf
Student Outcome f the broad education necessary to understand th.pdfStudent Outcome f the broad education necessary to understand th.pdf
Student Outcome f the broad education necessary to understand th.pdf
 
QUESTION 8 1.00000 P Financial intermediaries are different from inve.pdf
QUESTION 8 1.00000 P Financial intermediaries are different from inve.pdfQUESTION 8 1.00000 P Financial intermediaries are different from inve.pdf
QUESTION 8 1.00000 P Financial intermediaries are different from inve.pdf
 
Post your response to the following focus questionsDescribe a sol.pdf
Post your response to the following focus questionsDescribe a sol.pdfPost your response to the following focus questionsDescribe a sol.pdf
Post your response to the following focus questionsDescribe a sol.pdf
 
Please fill in the code, which only need to add code in the adju.pdf
Please fill in the code, which only need to add code in the adju.pdfPlease fill in the code, which only need to add code in the adju.pdf
Please fill in the code, which only need to add code in the adju.pdf
 
Linear AlgebraHello. I need help with my practice final. I am not .pdf
Linear AlgebraHello. I need help with my practice final. I am not .pdfLinear AlgebraHello. I need help with my practice final. I am not .pdf
Linear AlgebraHello. I need help with my practice final. I am not .pdf
 
Many nations, including the US, already maintain a national DNA data.pdf
Many nations, including the US, already maintain a national DNA data.pdfMany nations, including the US, already maintain a national DNA data.pdf
Many nations, including the US, already maintain a national DNA data.pdf
 
implement the add() method for min-heappublic class Heap {    .pdf
implement the add() method for min-heappublic class Heap {    .pdfimplement the add() method for min-heappublic class Heap {    .pdf
implement the add() method for min-heappublic class Heap {    .pdf
 
i need the complete answers as soon as possibleSolutionUNI.pdf
i need the complete answers as soon as possibleSolutionUNI.pdfi need the complete answers as soon as possibleSolutionUNI.pdf
i need the complete answers as soon as possibleSolutionUNI.pdf
 
How are nuclear pores and porins in the membrane differentSolut.pdf
How are nuclear pores and porins in the membrane differentSolut.pdfHow are nuclear pores and porins in the membrane differentSolut.pdf
How are nuclear pores and porins in the membrane differentSolut.pdf
 
How many allotropic forms does uranium have Discuss the effect of a.pdf
How many allotropic forms does uranium have Discuss the effect of a.pdfHow many allotropic forms does uranium have Discuss the effect of a.pdf
How many allotropic forms does uranium have Discuss the effect of a.pdf
 
How does C2 compare to various security and encryption methodsa. .pdf
How does C2 compare to various security and encryption methodsa. .pdfHow does C2 compare to various security and encryption methodsa. .pdf
How does C2 compare to various security and encryption methodsa. .pdf
 
Explain homologous recombination between human X and Y chromosomes..pdf
Explain homologous recombination between human X and Y chromosomes..pdfExplain homologous recombination between human X and Y chromosomes..pdf
Explain homologous recombination between human X and Y chromosomes..pdf
 
Explain the differences between a stateless and a stateful firewall..pdf
Explain the differences between a stateless and a stateful firewall..pdfExplain the differences between a stateless and a stateful firewall..pdf
Explain the differences between a stateless and a stateful firewall..pdf
 
By looking at the skeleton of a python, a boa contricor and a legles.pdf
By looking at the skeleton of a python, a boa contricor and a legles.pdfBy looking at the skeleton of a python, a boa contricor and a legles.pdf
By looking at the skeleton of a python, a boa contricor and a legles.pdf
 
Explain what we mean by Ride with vehicles.SolutionRide.pdf
Explain what we mean by Ride with vehicles.SolutionRide.pdfExplain what we mean by Ride with vehicles.SolutionRide.pdf
Explain what we mean by Ride with vehicles.SolutionRide.pdf
 
File PrintCoded.java (shown above) contains an incomplete program. T.pdf
File PrintCoded.java (shown above) contains an incomplete program. T.pdfFile PrintCoded.java (shown above) contains an incomplete program. T.pdf
File PrintCoded.java (shown above) contains an incomplete program. T.pdf
 

Recently uploaded

Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 

Recently uploaded (20)

Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 

What is going to be the output of the following program #include .pdf

  • 1. What is going to be the output of the following program: #include voidfM (int m[10]) {for (int i = 0; i Solution #include void fM(int m[10]) {int i; for( i=0;i<10;i+=2) { m[i]=m[i]+2; } } int main() { int iarray[10]={2,4,7,9,11,23}; fM(iarray); printf("%d %d %d ",iarray[0],iarray[1],iarray[2] ); return 0; } ============================= output: 4 4 9 It simply adde 2 to number at even position for 2 to 10;