Select the correct option to test your answer:
More Computer Questions
What will be the output of the following Java code? class newthread implements Runnable { Thread t; newthread() { t = new Thread(this,"My Thread"); t.start(); } public void run() { System.out.println(t.getName()); } } class multithreaded_programing { public static void main(String args[]) { new newthread(); } }
Which is the storage that allows the caching of web pages and their associated resources?
What will be the output of the following C code? #include <stdio.h> struct student { char a[5]; }; void main() { struct student s[] = {"hi", "hey"}; printf("%c", s[0].a[1]); }
What is the GCD of a and b?
What will be the output of the following C++ code? #include <iostream> #include <vector> using namespace std; int main () { unsigned int i; vector<int> first; vector<int> second (4, 100); vector<int> third (second.begin(), second.end()); vector<int> fourth (third); int myints[] = {16, 2, 77, 29}; vector<int> fifth (myints, myints + sizeof(myints) / sizeof(int) ); for (vector<int> :: iterator it = fifth.begin(); it != fifth.end(); ++it) cout << ' ' << *it; return 0; }