Find the output of the following program.public class Solution{public static void main(String[] args){int[] x = {120, 200, 016};for(int i = 0;i x.length; i++){System.out.print(x[i] + " ");}}}
int main(){int a=10,b=20;if(a==9 AND b==20){printf("Archana..");}if(a==10 OR b==21){printf("Jain");}return 0;}
#includeOutput of the program isint main ( ){int a[ ] = {2, 4, 6, 8, 10};int i, sum = 0, *b = a + 4;for (i = 0; isum = sum + (*b - i) - *(b - i);printf ( % d \ n, sum);return 0;}
#include stdio.hvoid solve() {int x = printf("Hello");printf(" %d", x);}int main() {solve();return 0;}
What will be the output of the following code snippet?#include stdio.hvoid solve(int x) {if(x == 0) {printf("%d ", x);return;}printf("%d ", x);solve(x - 1);printf("%d ", x);}int main() {solve(3);return 0;}
class box{int width;int height;int length;}class main{public static void main(String args[]){box obj = new box();obj.width = 10;obj.height = 2;obj.length = 10;int y = obj.width * obj.height * obj.length;System.out.print(y);}}
#includestdio.hint fun (int n){int x=1, k;if (n==1) return x;for (k=1; k n; ++k)x = x + fun(k) * fun(n - k);return x;}
void main()What is the output of this program{int a, b, c, abc = 0;a= b = c= 40;if (c){int abc;abc = a*b+c;printf ("c = %d, abc = %d" ,c, abc);}