1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
netineya [11]
2 years ago
12

In the code snippet, what is the “win” part called in programming?

Computers and Technology
1 answer:
MAXImum [283]2 years ago
8 0
I think the answer is B: parameter
You might be interested in
Matching parentheses. An math expression may have a number of parentheses like (, ), [, ], { and }. Each openning parenthesis (,
Solnce55 [7]
C++ Code

#include
using namespace std;

bool match(const char exp[],const int s)
{
// declare a character array to perform stack operations
char stack[s];

// declare top and initialize to -1 and flag to 0
int top=-1,i,flag=0;

// visit all characters in the expression string
for(i=0;i {
// if the character is [ or ( or { then push it into stack
if(exp[i]=='[' || exp[i]=='(' || exp[i]=='{')
{
top++;
stack[top]=exp[i];
}
// if the character is ] or ) or } then check conditions
else if(exp[i]==']' || exp[i]==')' || exp[i]=='}')
{
// check stack is empty or not
if(top!=-1)
{
// check all possible failure conditions
if(exp[i]==')' && (stack[top] == '{' || stack[top]=='['))
{
flag = 1;
break;
}
else if(exp[i]==']' && (stack[top] == '{' || stack[top]=='('))
{
flag = 1;
break;
}
else if(exp[i]=='}' && (stack[top] == '(' || stack[top]=='['))
{
flag = 1;
break;
}
top--;
}
else
{
flag=1;
break;
}
}
}
// after visiting all characters of expression string check if stack is not empty and flag is 1. if any one of the condition is true return false. otherwise return true

if(top>=0 || flag==1)
return false;
else
return true;
}

int main()
{

// declare character array to store expression
char exp[10000];
cout<<"Enter an Expression"<
// read expression from user
cin.getline(exp, 10000);
int s=0;

// find the length of the expression string
for(int i=0;exp[i]!='\0';i++)
{
s++;
}

// call the match function
bool status = match(exp,s);

// print the result based on value returned by match() function
if(status == 1)
cout<<"true"< else
cout<<"false"<
}


Sample Input/Output is attached

3 0
2 years ago
How to know if someone read your message android?
vredina [299]
Is it on the actual messages or on an app???
4 0
3 years ago
Which best describes external hardware?
aalyn [17]

Answer:

Peripherals

Explanation:

devices used to interact with the computer. External hardware devices include monitors, keyboards, mice, printers, and scanners.

5 0
2 years ago
Is a location on your computer screen where you type text entries to communicate with the computer’s operating system?
goldfiish [28.3K]
Command line. hope this helps
4 0
3 years ago
Why is it best to run av scans when the computer isn���t being utilized?
Rasek [7]
A and B I'd say :)
Scan slows the computer while you are using it.
A few process are also unscannable whrn you use it (I may be wrong on this)
8 0
3 years ago
Read 2 more answers
Other questions:
  • java class What is the output of the following JAVA program (Java assumes public if no access modifier is given)? class Test { p
    8·1 answer
  • What is the aperture and how does it impact sunrise/sunset photos? What is generally considered an ideal aperture for sunrise/su
    5·2 answers
  • How do you change your age on here? I accidentally put that i was 15 but i am only 13. How do I change this?
    12·1 answer
  • Research: "How was your experience on site '4chan'?"<br><br> Please answer in the box below.
    9·1 answer
  • Read the following example cover letter: To Ms. March: I was excited to see your opening for a customer support specialist with
    13·1 answer
  • What is the right age to start coding in high school?
    11·1 answer
  • 20 points for ez question lol
    9·2 answers
  • Declare a typedef struct named jumper_t that will have four parts: character array name that is 16 in length, double array of tr
    12·1 answer
  • When a Select Case statement executes, the value of the test expression is compared with the values that follow each of the ____
    7·1 answer
  • What does the poster exemplify?
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!