
What will be the final values of i and j in the following C code?#include <stdio.h>int x = 0;int main(){int i = (f() + g()) | g(); //bitwise orint j = g() | (f() + g()); //bitwise or}int f(){if (x == 0)return x + 1;elsereturn x - 1;}int g(){return x++;}a) i value is 1 and j value is 1b) i value is 0 and j value is 0c) i value is 1 and j value is undefinedd) i and j value are undefined
#include <stdio.h>What is the output of this program?void solve) {int x = printf ("Hello") ;printf(" %d", x);}int main(){solve() ;return 0;}
#include <stdio.h>void main(){int a[2][3] = {1, 2, 3, 4, 5};int i = 0, j = 0;for (i = 0; i < 2; i++)for (j = 0; j < 3; j++)printf("%d", a[i][j]);}