204 views
0 votes
0 votes
Consider the following function.
Void gradeup(int n)
{
enqueue(Q,0);
enqueue(Q,1);
for (i=0;i<n;i++)
{
x = dequeue(Q);
y = dequeue(Q);
enqueue(O,y);
enqueue(Q+x+y);
print(x);
}
}
What is the functionality of above function gradeup?

A

Prints numbers from 0 to n-1

B

Prints number from n-1 to 0

C

Prints first n fibboacci numbers

D

Prints first n fibbonacci number in reverse order

Please log in or register to answer this question.

Related questions

1 votes
1 votes
2 answers
1
ajay_rajpurohit asked Oct 4, 2021
389 views
please explain the question
0 votes
0 votes
1 answer
2
aditi19 asked Nov 28, 2018
1,160 views
0 votes
0 votes
2 answers
4
Warrior asked Mar 18, 2018
571 views
What is the output of this program ?Please give reason..#include<stdio.h int g() ; int f(); void main() { printf(“%d”,f()); } int g(){ int a=7,b=8,c; { int a=3; b=6; ...