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> using namespace std; class A { int a; public: A(){ a = 0; } void show(){ a++; cout<<"a: "<<a<<endl; } }; class B: public A { public: }; int main(int argc, char const *argv[]) { B b; b.show(); return 0; }
What will be the output of the following C++ code? #include <iostream> #include <string> #include <cstdlib> using namespace std; template<class T> T func(T a) { cout<<a; return a; } int func(int a) { cout<<a; } int main(int argc, char const *argv[]) { int a = 5; int b = func(a); float c = func(5.5); return 0; }
NIC stands for
What error occurs if an input argument is outside the domain over which the mathematical function is de?ned?
What will be the output of the following C++ code? #include <iostream> #include <cstring> using namespace std; int main () { char str1[10] = "Hello"; char str2[10] = "World"; char str3[10]; int len ; strcpy( str3, str1); strcat( str1, str2); len = strlen(str1); cout << len << endl; return 0; }