Prerequisite : Pointers in C Question 1 : What will be the output of following program? C #include "stdio.h" int main() { char a[] =… Read More
Tag Archives: C-Output
1) What is the output of the following program? #include <stdio.h> #include <string.h> int main(void) { char* p = "geeks"; printf("%lu %lu %lu ", sizeof(p),… Read More
Prerequisite : Declaration & Initialization in C programmingQ1. Consider the following code: C #include <stdio.h> void main() { extern int i; i = 20; printf("%d",… Read More
Prerequisite : Loops in C Q.1 What is the output of this program? #include <iostream> using namespace std; int main() { int i, j, var… Read More
Prerequisite : C Constants and StringsQ.1 What is the output of this program? CPP #include<iostream> using namespace std; int main() { const char *s =… Read More
Prerequisite : Control StatementsQ.1 What is the output of this program? CPP #include <iostream> using namespace std; int main() { char i = 0; for… Read More
Prerequisite : Operators in C Q.1 What is the output of this program? #include <iostream> using namespace std; int main() { printf("value is = %d",… Read More
Prerequisite : for loop Q.1 What is the output of this program? #include <iostream> using namespace std; int main() { for (5; 2; 2) printf("Hello\n");… Read More
Prerequisite : While loops Q.1 What is the output of this program? #include <iostream> using namespace std; int main() { unsigned int x = 3;… Read More
Prerequisite: Shift operators Q.1 What Is The Output Of this program? #include <stdio.h> int main() { unsigned int i = 0x80; printf("%d ", i <<… Read More
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 will be the output of the following program? #include <stdio.h> int main() { int a = 03489; printf("%d", a); return (0); } Options:… 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