Examveda

What is the functionality of the following piece of code?
public void fun(int x)
{
	q1.offer(x);
}

A. Perform push() with push as the costlier operation

B. Perform push() with pop as the costlier operation

C. Perform pop() with push as the costlier operation

D. Perform pop() with pop as the costlier operation

Answer: Option B


This Question Belongs to Data Structure >> Introduction To Data Structures

Join The Discussion

Related Questions on Introduction to Data Structures