October 6, 2023

Programming-for-Output-Problems

Question 26 Consider the following program fragment if(a > b) if(b > c)     s1; else    s2; s2 will be executed if A a <= b B […]
October 6, 2023

Programming-for-Output-Problems

Question 25 The following program main() {   inc();   inc();   inc(); } inc() {    static int x;    printf(“%d”, ++x); } A prints 012 B prints 123 C […]
October 6, 2023

Programming-for-Output-Problems

Question 23 Consider the following program fragment i=6720; j=4; while (i%j==0) {     i=i/j;     j=j+1; } On termination j will have the value A 4 B 8 […]
October 6, 2023

Programming-for-Output-Problems

Question 24 Consider the following declaration: int a, *b=&a, **c=&b; The following program fragment a=4; **c=5; A does not change the value of a B assigns […]
error: Alert: Content selection is disabled!!