Prerequisite: Decision Making in Java Predict the Output of the following programs 1. What will be the output of the following program? public class Test… Read More
Category Archives: Program Output
Predict the output of below programs Question 1 #include <stdio.h> int main() { int x, a = 0; x = sizeof(a++) ? printf("Geeks for Geeks\n")… Read More
1. What is the Output of the following Java Program? Java import java.util.LinkedList; class Demo { public void show() { LinkedList<Integer> list = new… Read More
Prerequisite: Java – Collections 1. What is the output of following Java Program? import java.util.ArrayList; class Demo { public void show() { ArrayList<Integer> list =… 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
Prerequisite : Arrays in Java Question 1. What is the output of following program? class ArrayDemo { public static void main(String[] args) { int arr1[]… Read More
Prerequisite : Arrays in Java 1. What will be the output of the following program? Java public class Test { public static void main(String[] args)… 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
1. What will be the output of the below program? C++ #include <stdio.h> #define GEEKS 100 int main() { #define GEEKS 100 printf("%d", GEEKS); return… Read More
Prerequisite: Operators in C 1. What will be the output of the following? #include <stdio.h> int main(void) { int a; int b = 1; int… Read More
1. What will be the output of following program? #include <stdio.h> int main() { int a = 5, *b, c; b = &a; printf("%d", a… Read More
1. What will be the output of the below program? #include <stdio.h> int main() { printf("%d", printf("%d", printf("%d", printf("%s", "Welcome to geeksforgeeks")))); return (0); }… Read More
Here are some C programs which is related to the control structures With the detailed explanation, guess the output of the following programs:- 1.what will… Read More
Perquisite : Operators in C 1. What will be the output of the following program? #include <stdio.h> int main(void) { int i = 40 >>… Read More