...
October 6, 2023

Programming-for-Output-Problems

Question 3 Consider the following C program: #include <stdio.h> int r()  { static int num=7 ; return num-- ; } int main ()  { for (r(); […]
October 6, 2023

Programming-for-Output-Problems

Question 11 Write the output of the following C program #include <stdio.h> int main (void) { int shifty; shifty = 0570; shifty = shifty >>4; shifty […]
October 6, 2023

Programming-for-Output-Problems

Question 9 How many lines of output does the following C code produce? #include<stdio.h> float i=2.0; float j=1.0; float sum = 0.0; main() { while (i/j […]
October 6, 2023

Programming-for-Output-Problems

Question 12 Consider the following segment of C-code: The number of comparisons made in the execution of the loop for any n > 0 is: A […]