Predict the output of following C Program. #include <stdio.h> #define R 4 #define C 4 void modifyMatrix(int mat[][C]) { mat++; mat[1][1] = 100; mat++;… Read More
Category Archives: Program Output
Predict the output of the following Java programs. Question 1: Java package main; class Base { public void Print() { System.out.println("Base"); } } … Read More
Difficulty Level: Rookie Predict the output of the following Java Programs. Program 1: Java // filename Main.java class Test { protected int x, y; }… Read More
Predict the output of following C++ programs. Question 1 template <class S, class T> class Pair { private: S x; T y; /* ... */… Read More
Predict the output of following C programs.Question 1: C #include<stdio.h> int main() { enum channel {star, sony, zee}; enum symbol {hash, star}; int… Read More
Predict the output of following C programs. Question 1 C #include<stdio.h> #define fun (x) (x)*10 int main() { int t = fun(5); int i; … Read More
Predict the output of following C++ programs. Question 1 #include<iostream> using namespace std; class Test1 { int x; public: void show() { } };… Read More
Predict the output of following C++ programs. Question 1 class Test1 { int y; }; class Test2 { int x; Test1 t1; public: operator… Read More
Predict the output of below C++ programs. Question 1 #include<iostream> using namespace std; class Test { int value; public: Test (int v =… Read More
Difficulty Level: RookiePredict the output of below C++ programs.Question 1 C++ #include<iostream> using namespace std; class Test { int value; public: Test(int v); };… Read More
Difficulty Level: Rookie Predict the output of below C++ programs. Question 1 #include<iostream> using namespace std; int x = 10; void fun() { int… Read More
Predict the outputs of following C programs. Question 1 int main() { int x = 10; static int y = x; if(x == y)… Read More
Predict the output of below C++ programs.Question 1 C++ #include<iostream> using namespace std; class P { public: void print() { cout <<" Inside P::";… Read More
Predict the outputs of following program. Difficulty Level: Rookie Question 1 #include <stdio.h> int main() { int a = 10, b = 20, c =… Read More
Predict the output of following C programs.Question 1 C #include<stdio.h> int fun() { static int num = 40; return num--; } int main() {… Read More