Functional Programming with OCaml · Instructor: Prof. K C Sivaramakrishnan
How many elements does the array declared as int a[5]; hold?
Which data structure follows the Last-In-First-Out (LIFO) principle?
In C, array indexing starts at which number?
What does a pointer variable in C store?
Which principle does a queue follow?
Select the true statements from the following
A stack is initially empty. The following operations are performed in order: push(1), push(2), push(3), pop(), push(4)
In C, what does the expression 7 / 2 evaluate to when both operands are int?
What does f(3) return? int f(int n) { if (n == 0) return 0; return n + f(n - 1); }
Which of the following statements are true? Select ALL that apply.