Well then tell me, dear if this is not a program,
Quote/Moto from my Idle:
So when a question of programming is given, one should compile it in the brain and execute it, line by line to get an accurate answer.
If you do not think of implementation, then you are doing it wrong.
Most of the times your answer will be wrong in exams.
so about the language, it is not a c language then c++, but c++ require & to show references...
if java(Same goes for C#) then according to recommendation class name should start with a capital, So we cannot say 'queue' is a user defined class. if it is a class then - bro how can it be in gate exam... are the gate examiners don't have programming knowledge..
This one is a tricky question, so a perfect programmer will put 'B', and marks get reduced. But the programmers who still work after perfection will see the answer as 'C'...
I'm not an expert in it or something... it just I confirmed it from many programmers. And all of them say 'C'.