What is the output of the following program#include stdio.hint main() {int i = 1;while (i = 5) {printf("%d\n", i);++i;}return 0;}
#includeint main(){int i=320;char *ptr=(char *)&i;printf("%d",*ptr);return 0;}
#include stdio.hunion Sti{int nu;char m;};int main(){union Stia s;printf("%d", sizeof(s));return 0;}
#include stdio.hWhat is the output of the following programvoid 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;}
class triangle{int base;int height;}class main{public static void main(String args[]){box obj = new triangle();obj.base = 10;obj.height = 2;int y = 1/2(obj.base * obj.height);System.out.print(y);}}
#include stdio.hint main(){int x, y = 5, z = 5;x != y == z;printf("%d", x);getchar();return 0;}
class output{public static void main(String args[]){String c = "Hello i love java";boolean var;var = c.startsWith("hello");System.out.println(var);}}