class variable_scope{public static void main(String args[]){int x;x = 5;{int y = 6;System.out.print(x + " " + y);}System.out.println(x + " " + y);}}
#include stdio.hvoid solve() {int a[] = {1, 2, 3, 4, 5};int sum = 0;for(int i = 0; i 5; i++) {if(i % 2 == 0) {sum += *(a + i);}else {sum -= *(a + i);}}printf("%d", sum);}int main() {solve();return 0;}
#includestdio.hWhat is the output of this code snippet?void f(){static int i = 3;printf("%d ", i);if(--i)f();}main(){f();}
#include stdio.hHow many times sookshmas is printedint main(){while(1){printf("sookshmas\n");}return 0;}
What will be the output of the following Python program?i = 0while i 5:print(i)i += 1if i == 3:breakelse:print(0)