Skip to content

Tag Archives: CPP-Output

Preprocessing is a stage where preprocessor directives are expanded or processed before source code is sent to the compiler. The most common example of such… Read More
Predict the output of the following C++ programs:  Question 1:   CPP #include <cstdlib> #include <iostream> using namespace std; int main() {     int ran = rand();… Read More
What is the output of the following program?   CPP #include <iostream> using std::cout; int main() {     int i = 0;     cout << (i = 0… Read More
Prerequisite : While loops Q.1 What is the output of this program? #include <iostream> using namespace std; int main() {     unsigned int x = 3;… Read More
Q.1 What Is The Output Of this program ? #include <iostream> using namespace std; int main() {     int a = 35;     int b = 12;… Read More
Prerequisite : Pointers in C/C++ 1. What will be the output of the following program? #include <iostream> using namespace std;    int main() {     int… Read More
Prerequisite : Decision Making in C++ Question 1. What is the output of following program? #include <iostream> #include <stdio.h> int main() {     if (!(std::cout <<… Read More
Q.1 What Is The Output Of this program?  CPP #include <iostream> using namespace std; int main() {     int a = b = c = 10;… Read More
Output In C++ Q.1 What is the output of below program? #include <iostream> using namespace std; int main() {     int x = 0;     x =… Read More
Decision and Loops & Control Statements QUE.1 What is the output of this program ? #include <iostream> using namespace std; int main () {     int… Read More
Q.1 What is the output of following program? #include <iostream> using namespace std; int main() {     int i, j, k;     int sum[2][4];     for (i =… Read More
Prerequisite: Pointers in C/C++ QUE.1 What would be printed from the following C++ program? #include <iostream> #include <stdlib.h> using namespace std; int main() {     float… Read More
Prerequisite : Pointers in C/ C++ QUE.1 What would be printed from the following C++ program? #include <iostream> using namespace std; int main() {     int… Read More
Predict the output for the following C++ code: Question 1 #include <iostream> int main() {     if (std::cout << "hello")         std::cout << " world";     else         std::cout… Read More
Ques 1. What is the output of the following assuming that the size of int is 4 bytes. #include <iostream> using namespace std;    class… Read More