Skip to content

Category Archives: Program Output

1. What will be the output of the below program?   CPP #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
1. What is the output of following program? #include <stdio.h> #define square(x) (x * x)    int main() {     int x, y = 1;     x… Read More
QUE.1 What is the output of this program ? public class Prg {     public static void main(String args[])     {         System.out.print('A' + 'B');     } } OPTION… 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
Question 1. What is the output of the following question? class Test1 { public     static void main(String[] args)     {         int String = 65;         int Runnable… 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
Question 1. What is the output of the following question? class Test {     int a = 10;     static int b = 20;    public     static… Read More
Prerequisite : Pointers and References Q.1 What Is The Output Of this program? #include <iostream> using namespace std; void fun(int& a, int b) {     a… Read More
Decision and Loops & Control Statements QUE.1 What is the output of this program ? #include <stdio.h> #include <stdio.h>    void main() {     while (printf("geeks"))… Read More
Prerequisite: Structures and Union QUE.1 What will be the output of this code? #include <iostream> using namespace std; typedef struct s1 {     int a;     float… Read More