Question : Which of the above 2 codes executes quickly.
i) a) is faster than b)
ii) b) is fater than a)
iii) both a) and b) executes for same time.
iv) depends upon the compiler and the hardware used.
Ans: " I think iii)" (check it out)
9)
fun( int x, int y)
{
x =3;
y =2;
}
main()
{
int i;
fun( i,i);
printf("%d",i);
}
Question :if the value is 2 then the calling mechanism is
a. Call by name
b. Call by refernce
c. Call by value
ans : call by reference
sorry my memory last a question...(10th)
"The question paper is a easy one but i think they are expecting a higher cut-off".
In apptidute they ask train,socks(probability),work..
In computer Basic's data structure (tree,queue) like best search method ..
|
|