c - what is below function doing what is this data structure ds used in below program define max 10 int dsmax int f 1 int r 1 funint item if r max 1 printffull or overflow else if f 1 f 0 r r 1 queue_arrr item - skillgun

the function fun is trying to push a new element into the array ds[]. this is a stack push() implementation.

the function fun is trying to insert a new element at the front of the array ds[]. this is the implementation of enqueue functionality of a queue.

the function fun is trying to insert a new element at the rear of the array ds[]. this is the implementation of enqueue functionality of a queue.

the function fun is trying to push a new element at the rear of the array ds[]. this is a stack push() implementation.

Answer :(C)

the function fun is trying to insert a new element at the rear of the array ds[]. this is the implementation of enqueue functionality of a queue.

Description :

the function fun is trying to insert a new element at the rear of the array ds[]. this is the implementation of enqueue functionality of a queue using an array.