For the following questions answer them individually
Consider the following program fragment
i = 6720; j = 4;
while((i % j) == 0)
{
$$i= \frac{i}{j}$$;
j = j + 1;
}
on termination j will have the value
Consider the following declaration,
int a, *b = &a, **c = &b;
the following program fragment
a=4;
**c=5;
The output of the following program is
main( )
{
static int x[] = {1, 2, 3, 4, 5, 6, 7, 8};
int i;
for (i = 2; i < 6; ++i)
x[x[i]] = x[i);
for (i = 0; i < 8; ++i)
printf(*%d", x[i]);
}
Consider the following statements
# define hypotenuse(a, b) sqrt (a*a + b*b);
The macro call hypotenuse (a+2, b+3);
In X=$$\frac{M+N \times O}{P \times Q}$$ how many one-address instructions are required to evaluate it?
A decimal number has 64 digits. The number of bits needed for its equivalent binary representation is
Consider the following C declaration
struct {
short s[5];
union {
float y;
long z;
ju;
}t;
Assume that objects of type short, float and long occupy 2 bytes, 4 bytes and 8 bytes, respectively. The memory requirementfor variable t, ignoring alignment considerations,is
Consider the following code segment
void foo(int x, int y) .
{
x+=y;
y+=x;
}
main( )
{
int x=5.5;
foo(x,x);
}
What is the final value of x in both call by value andcall by reference, respectively?