Write a single instruction that will find the remainder of integral division when x is divided by y. Have the answer stored in z.
1 3573Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)
2003Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?
2076Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == 4 ) y-= 7; else y = 8; Enter a segment of code (without any IF statements) that does exectly the same thing using the switch structure.
1 3797Given the following function definition: int doit(int &x, int y, int &z) { x = 3*x; y = y + 5; z = x+y; return z - 4; } int a = 5, b = 7, c = 9, d = 11; d = doit(a,b,c);
2 7036Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
2674Write a program and call it sortcheck.cpp which receives 10 numbers from input and checks whether these numbers are in ascending order or not. You are not allowed to use arrays. You should not define more than three variables
2 4953Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
4 11598Post New C++ General Questions
Can manipulators fall in love?
What are the classes in c++?
Is there any function that can skip certain number of characters present in the input stream?
What does new return if there is insufficient memory to make your new object?
What is the difference between C and CPP?
What are the two shift operators and what are their functions?
Which operator cannot overload?
What are the advantages of pointers?
What is the difference between the parameter to a template and the parameter to a function?
What is a multiset c++?
Is facebook written in c++?
How the virtual functions maintain the call up?
Explain public, protected, private in c++?
What is the difference between a reference and a pointer?
Can we change the basic meaning of an operator in c++?