#include using namespace std;int main(){int year = 12,value = 10,total = 0;do{year++;value *= 2;total += value;}while(value*2 < 1000);cout << "Age: " << year << endl;cout << "Last gift: " << value << endl;cout << "Total: " << total << endl;cin.get();return 0;
Answer:
Yes.
Explanation:
Race condition can be described as a situation where at any time there are two or more processes or threads operating concurrently, there is potential for a particularly difficult class of problems. The identifying characteristic of race conditions is that the performance varies depending on which process or thread executes their instructions before the other one, and this becomes a problem when the program runs correctly in some instances and incorrectly in others. Race conditions are notoriously difficult to debug, because they are unpredictable, unrepeatable, and may not exhibit themselves for years.
D. mouse that is your answer <span />
Answer:
The answer to this question is given below in the explanation section.
Explanation:
#include <iostream>
// it is preprocessor director that manipulate the input output in the program
using namespace std;// it is used to format input and output
int main() {
// main function is started
int x = 5;
// variable x is declared and initialized with value 5.
int y = 6;
//variable y is declared and initialized with value 6.
int z = 34; //variable z is declared and initialized with value 34.
int total = (x+(x + y)*z+y);
// variable total is declared and initialized with value of x,y,and z. and calculation performed on these value such as (5+(5+6)*34+6) that is equal to 385.
cout << total;
// print the value of total variable that is 385
return 0;
}