#includestdio.hguess the output of my roommates!int main(){enum roommates{ sanjana, shriya } ;printf("%d %d", sanjana, shriya);return 0;}
#include stdio.hvoid solve() {int first = 10, second = 20;int third = first + second;{int third = second - first;printf("%d ", third);}printf("%d", third);}int main() {solve();return 0;}
Study the following statement#include stdio.hint main(){int *ptr, a = 10;ptr = &a;*ptr += 1;printf("%d,%d/n", *ptr, a);}
What will the result of num1 variable after execution of the following statements?int j = 1, num1 = 4;while (++j = 10){num1++;}
int func(int num)The value returned by func(435) is?{int count=0;while(num){count++;num=1;}return(count);}