c - what operation below function doing and which data structure is this define max_ele 10 assume maximum elements is 10 int cur points to top element void funint ds int item if cur max_ele 1 printfoverflowcant insert else cur ds cur item - skillgun

this function is trying to insert a new element into the array ds[]. here ds is an array data structure.

this function is trying to insert a new element on top location of this data structure. So this is a stack.

this function is trying to insert a new element on top location of this data structure. So this is a queue.

both option 2 & 3 are correct, but we can't guess whether it is stack or queue, because insertion of new element in stack or queue happen on the top only (end).

Answer :(D)

both option 2 & 3 are correct, but we can't guess whether it is stack or queue, because insertion of new element in stack or queue happen on the top only (end).

Description :

this function is trying to insert a new element on top location of this data structure. both option 2 & 3 are correct, but we can't guess whether it is stack or queue, because insertion of new element in stack or queue happen on the top only (end).