Skip to content

Tag Archives: C-Output

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
Prerequisite : 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
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
1. What is the output of following program? #include <stdio.h> int main() {     int a = 1, b = 2, c = 3;     c =… 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
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
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
Prerequisite : Pre-increment and Post increment Question 1   C #include <stdio.h>   int main() {     char* p = "mayhem";     char c;     int i;     for (i =… Read More

Start Your Coding Journey Now!