Skip to content

Category Archives: Program Output

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? #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
QUE.1 What is the output of following program?  C #include <stdio.h> int main() {     int x = 10, *y, **z;       y = &x;     z… Read More
Prerequisite : Pointers in C/ C++ QUE.1 What would be printed from the following C++ program?  C++ #include <iostream> using namespace std; int main() {     int… Read More
QUE.1 What will be output if you will compile and execute the following c code? #include <stdio.h> int main() {     int a = 5;     float… 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
Prerequisite : File handling 1. What is the output of this program by manipulating the text file? #include <stdio.h> int main() {     if (remove("myfile.txt") !=… 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
Prerequisite : Pre-increment and Post increment Question 1 #include <stdio.h>    int main() {     char* p = "mayhem";     char c;     int i;     for (i =… Read More