Home / MCQ Bank / Computer
Computer Functions And Procedures In C Plus Plus Difficulty: Medium

What will be the output of the following C++ code? #include <iostream> using namespace std; int func (int a, int b) { cout << a; cout << b; return 0; } int main(void) { int(*ptr)(char, int); ptr = func; func(2, 3); ptr(2, 3); return 0; }

Select the correct option to test your answer:

More Computer Questions

Which Java exception is thrown when an array index is out of bounds? Two vectors M and N are defined as M <- c(3, 2, 4) and N <- c(1, 2). What will be the output of vector Z that is defined as Z <- M*N. What will be the output of the following C# code snippet? class test { public int a; public int b; public test(int i, int j) { a = i; b = j; } public void meth(test o) { o.a *= 2; o.b /= 2; } } class Program { static void Main(string[] args) { test obj = new test(10, 20); obj.meth(obj); Console.WriteLine(obj.a + " " + obj.b); Console.ReadLine(); } } Which of the following is accessed by a member function of a class? Which of the following is not a word processor?