Webpage

Programming in C. Recursion.

$$\scriptsize{\overset{{\large{\textbf{Mark Distribution in Previous GATE}}}}{\begin{array}{|c|c|c|c|c|c|c|c|}\hline
\textbf{Year} & \textbf{2022}&\textbf{2021-1}&\textbf{2021-2}&\textbf{2020}&\textbf{2019}&\textbf{2018}&\textbf{2017-1}&\textbf{2017-2}&\textbf{2016-1}&\textbf{2016-2}&\textbf{Minimum}&\textbf{Average}&\textbf{Maximum}
\\\hline\textbf{1 Mark Count} & 1 &0&2&1&2&2&1&2&2&1&0&1.4&2
\\\hline\textbf{2 Marks Count} & 2&2&2&1&3&3&4&4&2&2&1&2.5&4
\\\hline\textbf{Total Marks} & 5&4&6&3&8&8&9&10&6&5&\bf{4}&\bf{6.4}&\bf{10}\\\hline
\end{array}}}$$

Highest voted questions in Programming

1 votes
1 answer
1261
Assuming that a pointer take 4 bytes and the size of an integer is 2 bytes. What is the size of the *a in declaration: int (*a) [10] ? 4802040
1 votes
0 answers
1263
1 votes
3 answers
1264
Which operator has higher priority between *and / in any expression how to evaluate them
1 votes
1 answer
1265
1 votes
2 answers
1266
How many times does the while loop gets executed if the following function is called as $f(120,13)?$ f(m,n) { ans := 1 while (m - n >= 0) { ans := ans * 2 m := m - n ...
1 votes
1 answer
1267
Consider the following C function:void foo(int n) { while(n!=0) { if(!(n&1)) printf("*"); n=n>>1; } }The number of times printf (“*”) statement is executed, when the ...
1 votes
2 answers
1268
Every recursive program uses strictly more stack space compared to its iterative equivalent.This statement is false. Please explain with examples
1 votes
1 answer
1269
Which of the following data structure is most suitable for radix sort?1 .tree2 . Linked list 3 . Stack4 . Binary search tree
1 votes
0 answers
1270
Time complexity for Maximum number of edges to be added to a tree so that it stays a Bipartite graph is??answe given as O(v) using dfs but a option O(v+e) is also there w...
1 votes
0 answers
1271
1 votes
1 answer
1273
____ is used to convert from recursive to iterative implementation of an algorithmArrayTreeStackQueue
1 votes
1 answer
1276
1 votes
0 answers
1277
What happens to the code which is present after a return..??Compilation error, or it is ignored or something else
1 votes
2 answers
1278
Which of the following gives the memory address of a variable pointed to by pointer a?A. a;B. *a;C. &a;D. address(a);
1 votes
1 answer
1279
Which of the following is the proper keyword or function to allocate memory in C?A. newB. mallocC. createD. value
1 votes
1 answer
1280
In an AVL tree a single insertion can cause how many rotations at a particular time in worst case?