#includestdio.hunion School {int age, rollNo;double marks;};void solve() {union School sc;sc.age = 19;sc.rollNo = 82;sc.marks = 19.04;printf("%d", (int)sizeof(sc));}int main() {solve();return 0;
public static synchronized void main(String[] args) throwsOutput of the Java programInterruptedException {Thread f = new Thread();f.start();System.out.print("A");f.wait(1000);System.out.print("B");}