c - data structures in c what operation below function is doing and which data structure is this define max_ele 10 assume maximum elements is 10 int cur points to current top element int fun int ds int val if cur 1 val 1 else val ds cur cur return val - skillgun

this function is trying to retrieve an existing element from the array ds[]. here ds is an array data structure.

this function is trying to retrieve an existing element from top location of this data structure. So this is a stack. and operation here is pop operation.

this function is trying to retrieve an existing element from starting location of this data structure. So this is a stack. and operation here is pop operation.

this function is trying to retrieve an existing element from starting location of this data structure. So this is a queue. and operation here is deletion operation on queue.

Answer :(B)

this function is trying to retrieve an existing element from top location of this data structure. So this is a stack. and operation here is pop operation.

Description :

this function is trying to retrieve an existing element from top location of this data structure. So this is a stack. and operation here is pop operation.