#include stdio.hint main(){int n=0,a=3,b=12;while(n=(a^b)){n++;}printf("n=%d",n);return 0;}
#includestdio.hint main(){int i;printf("%d\n", scanf("%d", &i));return 0;}
#includeiostreamPredict the output of the above code snippet ?using namespace std;int main(){int a = 5;int b = 5;int sum = -( -a-b );cout sum;return 0;}
#include stdio.hstruct School {int age, rollNo;};void solve() {struct School sc;sc.age = 19;sc.rollNo = 82;printf("%d", (int)sizeof(sc));}int main() {solve();return 0;}
Study the following program:main(){int a = 1, b = 2, c = 3:printf("%d", a + = (a + = 3, 5, a))}What will be the output of this program?
#include stdio.hstruct School {int age, rollNo;};void solve() {struct School sc;sc.age = 19;sc.rollNo = 82;printf("%d", (int)sizeof(sc));}int main() {solve();return 0;}