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{2024-1}&\textbf{2024-2}&\textbf{2023}& \textbf{2022}&\textbf{2021-1}&\textbf{2021-2}&\textbf{Minimum}&\textbf{Average}&\textbf{Maximum}
\\\hline\textbf{1 Mark Count} & 2&2&1&1 &0&2&0&1.33&2
\\\hline\textbf{2 Marks Count} &1&1&0& 2&2&2&0&1.33&2
\\\hline\textbf{Total Marks} &4&4&1& 5&4&6&\bf{1}&\bf{4}&\bf{6}\\\hline
\end{array}}}$$

Hot questions in Programming

#1441
497
views
0 answers
0 votes
#1442
349
views
1 answers
0 votes
#1443
619
views
1 answers
2 votes
case : 'AB' is it valid to write multiple characters in single quotes?And if valid does ASCII value of a& b gets added and stored as integral constant?Thanks
#1444
378
views
1 answers
1 votes
#1445
674
views
1 answers
1 votes
What will be the output?
#1447
498
views
1 answers
2 votes
#include <stdio.h void f(char ); int main() { char *argv[] = { "ab", "cd", "ef", "gh", "ij", "kl" }; f(argv); return 0; } void f(char p) { char *t; t...
#1448
576
views
3 answers
0 votes
How many times will the loop execute?What is the general expression in terms of 'n'?for( i=1; i<=n; i=i*3) { for( j=i; j<=n; j++) { printf ...
#1449
492
views
0 answers
0 votes
I want to derive a formula that, with n nodes how many AVL trees can possible.we know that, with 0 == 1,with 1 == 1, with 2 == 2, with 3 == 1with 4 === root is fixed == r...
#1450
671
views
0 answers
0 votes
The number of different directed trees with 3 nodes areA) 3B) 4C) 5D) 6I think the answer is 5 but the answer is not.
#1451
1.3k
views
1 answers
4 votes
Why is it illegal initialization?#include<stdio.h #include<string.h main() { char *s[]={"Lakshya","cquest","brainq","cidol"}; char ss[]={(s+3),(s+2),(s+1),(s+0)}; char ...
#1452
350
views
0 answers
0 votes
What is the output of this code in c?int main(){static int a[] [3]={0,1,2,3,4,5,6,7,8,9,10,11,12};int i=-1;int d;d=a[i++][++i][++i]; printf("%d",d); return 0;} how did 2 ...
#1453
3.4k
views
1 answers
2 votes
Use of macro instead of function is recommended.(a) when one wants to reduce the execution time(b) when there is a loop with a function call inside(c) when a function is ...
#1454
767
views
0 answers
0 votes
int main(){int arr[3]={2,3,4};char *p;p = (char*)arr;printf("%d",*p);p=p+1;printf("%d",*p);return 0;}
#1455
348
views
2 answers
0 votes
Inserting N elements into empty binary heap takes O(n) time.Is this statement is correct anf if yes please elaborate
#1456
151
views
1 answers
0 votes
#1457
877
views
1 answers
1 votes
Consider the following program written in pseudo-code. Assume that x and y are integers. Count (x, y) { if (y !=2 ) { if (x !=1) { ...
#1458
262
views
0 answers
0 votes
Bit fields use for padding.It generally contained integer bits(signed and unsigned). But it cannot contain addresses. Does it mean bit field cannot contain a pointer ?Whe...
#1459
422
views
1 answers
2 votes
Consider the following keys that are hashed into the hash table in the order given using the hash function:P(k) = (3k +5) mod 1112, 44, 13, 88, 23, 94, 11, 39, 20, 16, 5w...
#1460
264
views
1 answers
1 votes
int A[]={0,1,2}int *ptr1 = &A // 1int (*ptr2)[] = &A // 2what is the difference bw 1 and 2 in terms of accessing elements of array