Select the correct option to test your answer:
More Computer Questions
What will be the output of the following C++ code? #include <iostream> #include <string> #include <sstream> using namespace std; int main () { string mystr; float price = 0; int quantity = 0; cout << "Enter price: "; getline (cin, mystr); stringstream(mystr) >> price; cout << "Enter quantity: "; getline (cin, mystr); stringstream(mystr) >> quantity; cout << "Total price: " << price * quantity << endl; return 0; }
What will be the output of the following C# code? static void Main(string[] args) { int i = 0, j = 0; while (i < 2) { l1: i--; while (j < 2) { Console.WriteLine("hi\n"); goto l1; } } Console.ReadLine(); }
What is the purpose of the method forward()?
The process of fetching and executing instructions, one at a time, in the order of increasing addresses is known as
Which of the following access modifiers restricts a method or variable's access to the same package only?