A) Write The Output When The Following Code Segments In Program 1.1 (Figure 6), Program 1.2 (Figure 7) And Program 3 (Figure 8) Are Executed: //program 1.1 Int A=1, B=2, C=3; Printf(\"%d\", (!(a>b) && (b= A; Printf(\"d Ad\\n\&quo

匿名用户 最后更新于 2021-12-01 19:36 计算机类Computing


a) Write the output when the following code segments in program 1.1 (Figure 6), program 1.2 (Figure 7) and program 3 (Figure 8) are executed: //program 1.1 int a=1, b=2, c=3; printf("%d", (!(a>b) && (b //program 1.2 int a -5, 10, c=11; x= a*b/--C+5; printf("%d\n" --C, x); y - 3* C++ >= a; printf("d ad\n", C, 9): Figure 7 Answer: (5 marks) //program 1.3 int num - 6234; float weight = 72.658; int abc - 65; // ASCII code 65 - A printf("%d\n", num. 2); printf ("%3d\n", num - 2000): printf ("4.2E\n", weight - 1.1); printf ("\n", 987.65 + 2.1234); printf ("lc le te\n", abc, abe - I. abc + 2): printf ("* to ex\n", abe + 1, abc + 2. abc + 3); printf("I like my s d\n", "abe, 1953 + abc); Figure 8 Answer: (5 marks)

已邀请: