SlideShare une entreprise Scribd logo
1  sur  1
Télécharger pour lire hors ligne
1. (3 points) What is the output of this program? using namespace std; void printString( string s,
int first) f for ( int 1= first ;1<5,length();1++) cout s[i] cout endl 3 int endPro( string strExp, int
first) f cout""<endl;printString(strExp,first);//Dutputhere//Dutputhere int last = strExp length
()1; if (first <0 |I first > last ) return -1 ; char ch=strExp[first]; if (0<=chkch<=39) return first;
else if (ch==,+3ch==31ch== * ,ch==,/3) { cout ch endl; // Dutput here int endPos = endPre
(strExp, 1irst +1); cout endPos endl; /1 Dutput here if (endPos >1 ) return endPre (strExp,
endPos +1); else return -1 ; 3 olse return -1 ; } int main() [ cout << endPre ("++23+56,0); 3

Contenu connexe

Plus de alpha1211

1. A transport services company provides a whole range of services t.pdf
1. A transport services company provides a whole range of services t.pdf1. A transport services company provides a whole range of services t.pdf
1. A transport services company provides a whole range of services t.pdf
alpha1211
 
1. (Simultaneous vs. sequential moves) Two generals must choose betw.pdf
1. (Simultaneous vs. sequential moves) Two generals must choose betw.pdf1. (Simultaneous vs. sequential moves) Two generals must choose betw.pdf
1. (Simultaneous vs. sequential moves) Two generals must choose betw.pdf
alpha1211
 
1. (06.01 CL) Dentro de un parque en una gran ciudad que a menud.pdf
1. (06.01 CL) Dentro de un parque en una gran ciudad que a menud.pdf1. (06.01 CL) Dentro de un parque en una gran ciudad que a menud.pdf
1. (06.01 CL) Dentro de un parque en una gran ciudad que a menud.pdf
alpha1211
 

Plus de alpha1211 (20)

1. Ceate a CD (class diagram) from above use case diagram cashier .pdf
1. Ceate a CD (class diagram) from above use case diagram cashier .pdf1. Ceate a CD (class diagram) from above use case diagram cashier .pdf
1. Ceate a CD (class diagram) from above use case diagram cashier .pdf
 
1. A network consists of network edge, network core, and access netw.pdf
1. A network consists of network edge, network core, and access netw.pdf1. A network consists of network edge, network core, and access netw.pdf
1. A network consists of network edge, network core, and access netw.pdf
 
1. Big Tech companies brings us many good things, but, what are so.pdf
1. Big Tech companies brings us many good things, but, what are so.pdf1. Big Tech companies brings us many good things, but, what are so.pdf
1. Big Tech companies brings us many good things, but, what are so.pdf
 
1. Barry y su esposa Mary han acumulado m�s de $6 millones durante s.pdf
1. Barry y su esposa Mary han acumulado m�s de $6 millones durante s.pdf1. Barry y su esposa Mary han acumulado m�s de $6 millones durante s.pdf
1. Barry y su esposa Mary han acumulado m�s de $6 millones durante s.pdf
 
1. As more people in in the United States have access to higher educ.pdf
1. As more people in in the United States have access to higher educ.pdf1. As more people in in the United States have access to higher educ.pdf
1. As more people in in the United States have access to higher educ.pdf
 
1. Assume a memory of 32K x 8 which is made up of 32 chips of size 1.pdf
1. Assume a memory of 32K x 8 which is made up of 32 chips of size 1.pdf1. Assume a memory of 32K x 8 which is made up of 32 chips of size 1.pdf
1. Assume a memory of 32K x 8 which is made up of 32 chips of size 1.pdf
 
1. A city government decides to post its annual budget and financial.pdf
1. A city government decides to post its annual budget and financial.pdf1. A city government decides to post its annual budget and financial.pdf
1. A city government decides to post its annual budget and financial.pdf
 
1. Answer the table questions for the following examples A.B.C.pdf
1. Answer the table questions for the following examples A.B.C.pdf1. Answer the table questions for the following examples A.B.C.pdf
1. Answer the table questions for the following examples A.B.C.pdf
 
1. According to the McKinsey study, the CSR approach which yields me.pdf
1. According to the McKinsey study, the CSR approach which yields me.pdf1. According to the McKinsey study, the CSR approach which yields me.pdf
1. According to the McKinsey study, the CSR approach which yields me.pdf
 
1. After listening to last weeks podcasts focused on the early stag.pdf
1. After listening to last weeks podcasts focused on the early stag.pdf1. After listening to last weeks podcasts focused on the early stag.pdf
1. After listening to last weeks podcasts focused on the early stag.pdf
 
1. According to Chapter 13, when must Miranda rights be given to an .pdf
1. According to Chapter 13, when must Miranda rights be given to an .pdf1. According to Chapter 13, when must Miranda rights be given to an .pdf
1. According to Chapter 13, when must Miranda rights be given to an .pdf
 
1. Al ejecutar una prueba ANOVA, observa grandes diferencias en las .pdf
1. Al ejecutar una prueba ANOVA, observa grandes diferencias en las .pdf1. Al ejecutar una prueba ANOVA, observa grandes diferencias en las .pdf
1. Al ejecutar una prueba ANOVA, observa grandes diferencias en las .pdf
 
1. A transport services company provides a whole range of services t.pdf
1. A transport services company provides a whole range of services t.pdf1. A transport services company provides a whole range of services t.pdf
1. A transport services company provides a whole range of services t.pdf
 
1. A Tale of Two Oceans cuenta la gran diferencia entre el Piloceno .pdf
1. A Tale of Two Oceans cuenta la gran diferencia entre el Piloceno .pdf1. A Tale of Two Oceans cuenta la gran diferencia entre el Piloceno .pdf
1. A Tale of Two Oceans cuenta la gran diferencia entre el Piloceno .pdf
 
1. (Simultaneous vs. sequential moves) Two generals must choose betw.pdf
1. (Simultaneous vs. sequential moves) Two generals must choose betw.pdf1. (Simultaneous vs. sequential moves) Two generals must choose betw.pdf
1. (Simultaneous vs. sequential moves) Two generals must choose betw.pdf
 
1. A real-world difficulty of applying utilitarianism is thata. S.pdf
1. A real-world difficulty of applying utilitarianism is thata. S.pdf1. A real-world difficulty of applying utilitarianism is thata. S.pdf
1. A real-world difficulty of applying utilitarianism is thata. S.pdf
 
1. A monopoly has...A. low barriers to entry.B. the ability to d.pdf
1. A monopoly has...A. low barriers to entry.B. the ability to d.pdf1. A monopoly has...A. low barriers to entry.B. the ability to d.pdf
1. A monopoly has...A. low barriers to entry.B. the ability to d.pdf
 
1. (12) What do each of the following do Be as detailed as possible.pdf
1. (12) What do each of the following do Be as detailed as possible.pdf1. (12) What do each of the following do Be as detailed as possible.pdf
1. (12) What do each of the following do Be as detailed as possible.pdf
 
1. A bank has the following asset portfolioi. 100 mn Government B.pdf
1. A bank has the following asset portfolioi. 100 mn Government B.pdf1. A bank has the following asset portfolioi. 100 mn Government B.pdf
1. A bank has the following asset portfolioi. 100 mn Government B.pdf
 
1. (06.01 CL) Dentro de un parque en una gran ciudad que a menud.pdf
1. (06.01 CL) Dentro de un parque en una gran ciudad que a menud.pdf1. (06.01 CL) Dentro de un parque en una gran ciudad que a menud.pdf
1. (06.01 CL) Dentro de un parque en una gran ciudad que a menud.pdf
 

Dernier

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Dernier (20)

Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
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
 
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
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
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
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
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 ...
 
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
 
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
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
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
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 

1. (3 points) What is the output of this program using namespace std.pdf

  • 1. 1. (3 points) What is the output of this program? using namespace std; void printString( string s, int first) f for ( int 1= first ;1<5,length();1++) cout s[i] cout endl 3 int endPro( string strExp, int first) f cout""<endl;printString(strExp,first);//Dutputhere//Dutputhere int last = strExp length ()1; if (first <0 |I first > last ) return -1 ; char ch=strExp[first]; if (0<=chkch<=39) return first; else if (ch==,+3ch==31ch== * ,ch==,/3) { cout ch endl; // Dutput here int endPos = endPre (strExp, 1irst +1); cout endPos endl; /1 Dutput here if (endPos >1 ) return endPre (strExp, endPos +1); else return -1 ; 3 olse return -1 ; } int main() [ cout << endPre ("++23+56,0); 3