681 views

1 Answer

Position:
Show:

Related questions

3 3 votes
1 1 answer
167
167 views
GO Classes asked Aug 4
167 views
An array has distinct elements. A local minimum is an element smaller than both of its neighbors, with endpoints compared to their only neighbor.A divide-and-conquer algo...
7 7 votes
2 2 answers
231
231 views
GO Classes asked Jun 11
231 views
What is the output of the following code?#include <stdio.h int x = 10; int main() { int x = 20; { extern int x; printf("%d", x); } return 0; }$\texttt{10}$ $\texttt{20}$ ...
5 5 votes
3 3 answers
231
231 views
GO Classes asked Jun 11
231 views
What is the output of the following code?#include <stdio.h int add(int n) { static int total = 1; total = total + n; return total; } int main() { int i, ans = 0; for (i =...