Home / MCQ Bank / Computer
Computer Arrays And Strings

What will be the output of the following C code? errno = 0; y = sqrt(2); if(errno == EDOM) printf("Invalid value\n"); else printf("Valid value\n");

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option B • Valid value

Related Computer Questions

How many symbols exist in Baudot code? What will be the output of the following C# code snippet? class UnsafeCode { struct MyStruct { public int a; public int b; public int Sum() { return a * b; } } unsafe static void Main() { MyStruct o = new MyStruct(); MyStruct* p; p = &o; p->a = 10; p->b = 20; Console.WriteLine("Value is " + p->Sum()); Console.ReadLine(); } The Knapsack problem is an example of ______ Using Pseudo element is known as ______ What will be the output of the following C++ code? #include <iostream> #include <vector> using namespace std; int main() { vector<int> v1; vector<int> v2; for (int i = 1; i <= 5; i++) v1.push_back(i); for (int i = 6; i <= 10; i++) v2.push_back(i); v1.swap(v2); for(int i=0;i<v1.size();i++) cout<<v1[i]<<" "; for(int i=0;i<v2.size();i++) cout<<v2[i]<<" "; cout<<endl; return 0; }