Skip to content

Category Archives: Program Output

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
QUE.1 What would be output following C program? #include <stdio.h> int main() {     char* str = "IncludeHelp";     printf("%c\n", *&*str);     return 0; } OPTION a) Error… Read More
1. What will be the output of following program? #include<stdio.h> void main() {     int i = 10;     static int x = i;     if (x ==… Read More
Prerequisite: Structure and UnionQUE.1 What is the output of this program?  C #include <stdio.h> struct sample {     int a = 0;     char b = 'A';… Read More
Q.1 What is the output of following program?  CPP #include <iostream> using namespace std; int main() {     int i, j, k;     int sum[2][4];     for (i… Read More
1. What is the output of following program? #include <stdio.h> int main() {     int a = 1, b = 2, c = 3;     c =… 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

Start Your Coding Journey Now!