Can i do by front and rear?

can i do by front and rear? instead of front and size

What is the question that you have to solve? Tell the problem here and then I can suggest the approach

you can’t see topic of my doubt?? i asked doubt on a particular topic not common.
i think you have access , so you can see.

You have tagged the whole topic of queue here, not the question in which you have a doubt
When i click the link i see the lecture video of queue

i asked can i perform operation by front and rear instead of front and size variable??

yes you can
both of them are inter-changable since front + size = rear