Skip to content

Tag Archives: C-Output

Ques1. What is the output of the following ? #include <stdio.h> void main() {     int a[5] = { 5, 1, 15, 20, 25 };     int… Read More
1.) What will be the output of the following code? #include <stdio.h> int main(void) {     int y, z;     int x = scanf("%d %d", &y, &z);… Read More
1. What will be the output of following? void main() {     int const* p = 5;     printf("%d", ++(*p)); } Options: A. 6 B. 5 C.… Read More
Short question based on c loops 1. What will be the output of the following code? #include <stdio.h> int main() {     int i = 0,… Read More
Ques 1. Assume that the size of an integer is 4 bytes and size of character is 1 byte. What will be the output of… Read More
You came across how to generate random numbers and use of two C function rand() and srand() from the article rand() and srand() in C\C++.Listed… Read More
Predict the output of the following C programs.1. What will be the output of following program? Input:  1 3 C #include<stdio.h> int main() {     int a,… Read More
Prerequisite: Pointers in C/C++ Question 1 What will be the output? #include<stdio.h>    int main() {      int a[] = { 1, 2, 3, 4, 5}… Read More
Prerequisite – Switch Case in C/C++ Interesting Problems of Switch statement in C/C++ Program 1 #include <stdio.h> int main() {     int num = 2;     switch… Read More
Question 1 #include<stdio.h> int main() {     int i;     for (i = 0; i<5; i++)     {         int i;         i = 10;         printf("%d ", i) ;     }… Read More
Predict the output of following C program. Question 1 #include <stdio.h>    int main() {     char a = 30;     char b = 40;     char c… Read More
Predict the output of following C programs. Question 1 #include <stdio.h>    int main(void) {     int i;     int power_of_ten[5] = {                             00001,                             00010,                             00100,                             01000,… Read More
Predict the output of following C programs. Question 1 #include <stdio.h>     int main() {   int arr[] = {};   printf("%d", sizeof(arr));   return 0; } Output:… Read More
Predict the output of following C program. int main(void) {     struct str     {         int i: 1;         int j: 2;         int k: 3;         int l: 4;… Read More
Predict the output of following C programs:Difficulty Level: Rookie Question 1   C #include<stdio.h> int main() {     int arr[] = {10, 20, 30, 40, 50, 60};     int… Read More

Start Your Coding Journey Now!