<=Back
Write the output generated when each of the following program segments codes in c program are executed. (4 marks)
(a)int i,j;
i=7;
i+=2;
j=sqrt(i);
printf (“value of i is %d and the value of j is %d”,i,j);
(b)int x,y;
x=5;
y=abs(6-x*2);
printf(“value of x is %d and the value of y is %d”,x,y);
 Viewed: 442 times
Share in: