Home / MCQ Bank / Computer
Computer Introduction To Data Structures Difficulty: Medium

What does the following function check for? (all necessary headers to be included and function is called from main) #define MAX 10 typedef struct stack { int top; int item[MAX]; }stack; int function(stack *s) { if(s->top == -1) return 1; else return 0; }

Select the correct option to test your answer:

More Computer Questions

What will be the output of the following Python code? def f(x): yield x+1 print("test") yield x+2 g=f(9) Which of the following keyboard shortcuts is used to view the source code of a web page in Chrome browser? In C, what is a function definition? Which class is used to perform matching operations with regular expressions in Java? Which class is a container for progress bars?