Q1. The Following program fragment
int 1=107,x=5;
printf((x>7)?"%d":"%c",1);
(a) an execution error (b) a syntax error
(c) printing of k (c) None of the above
Q2. Choose an correct statement
(a) for loop can be nested
(b) Nested for loop may use the same index
(c) While can be nested
(d) Both a and c
printf((x>7)?"%d":"%c",1);
(a) an execution error (b) a syntax error
(c) printing of k (c) None of the above
Q2. Choose an correct statement
(a) for loop can be nested
(b) Nested for loop may use the same index
(c) While can be nested
(d) Both a and c