Skip to content

Tag Archives: C-Output

Predict the output of following C Program. #include <stdio.h> #define R 4 #define C 4    void modifyMatrix(int mat[][C]) {    mat++;    mat[1][1] = 100;    mat++;… Read More
Predict the output of following C programs.Question 1: C #include<stdio.h>   int main() {     enum channel {star, sony, zee};     enum symbol {hash, star};       int… Read More
Predict the output of following C programs. Question 1  C #include<stdio.h> #define fun (x) (x)*10   int main() {     int t = fun(5);     int i;… Read More
Predict the outputs of following C programs. Question 1 int main() {   int x = 10;   static int y = x;      if(x == y)… Read More
Predict the outputs of following program. Difficulty Level: Rookie Question 1 #include <stdio.h> int main() {   int a = 10, b = 20, c =… Read More
Predict the output of following C programs.Question 1   C #include<stdio.h> int fun() {   static int num = 40;   return num--; }    int main() {… Read More
Predict the output of following C programs. Question 1 #include<stdio.h>    #define R 10 #define C 20    int main() {    int (*p)[R][C];    printf("%d",  sizeof(*p));… Read More
Predict the output of below C programs. Question 1 #include <stdio.h>    char* fun() {   return "awake"; } int main() {   printf("%s",fun()+ printf("I see you"));… Read More
Predict the output of below C programs. Question 1 C #include<stdio.h> int main(void) {   int a = 1;   int b = 0;   b = ++a +… Read More
Predict the output of below C programs. Question 1   C #include<stdio.h> int main() {    int a;    char *x;    x = (char *) &a;    a = 512;… Read More
Predict the output of below program. #include <stdio.h> #define TOTAL_ELEMENTS (sizeof(array) / sizeof(array[0])) int array[] = {1, 2, 3, 4, 5, 6, 7};    int… Read More
Difficulty Level: Rookie Question 1 Predict the output of below program. int main() {   char arr[] = "geeksforgeeks";   printf("%d", sizeof(arr));   getchar();   return 0; } Output:… Read More
Predict the output of below programs. Question 1 int fun(char *str1) {   char *str2 = str1;   while(*++str1);   return (str1-str2); }        int main() {   char… Read More
Asked by Shobhit #include<stdio.h> int fun(int n, int *fg) {    int t, f;    if(n <= 1)    {      *fg = 1;       return 1;    }    t =… Read More
Predict the output of the below programs. Question 1   c int main() {  int c=5;  printf("%d\n%d\n%d", c, c <<= 2, c >>= 2);  getchar(); } Output:… Read More

Start Your Coding Journey Now!