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}}}$$

Recent questions in Programming

#1101
266
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
#1103
207
views
1 answers
1 votes
#1104
674
views
0 answers
3 votes
Below is a question I was asked in an InterviewWhat is the best case time complexity to find the height of a Binary Search Tree?I answered it explaining using the below ... the height of a BST remains to be $O(n).$Was my claim correct?
#1105
413
views
0 answers
0 votes
for every j != i in {0,....,n-1} is it like for j=0 to n-1; j !=i ; ++j
#1106
394
views
1 answers
0 votes
#1107
256
views
1 answers
0 votes
Iam unable to execute the code below please help me to solve this and to execute.0909890987890987678909876567890987654567890987654345678909876543234567890987654321234567890987654321#include<stdio.h>int ... printf("\n"); } return 0;}
#1108
465
views
1 answers
0 votes
int *I ,j;I =&j; why it is valid since j has not been defined so no memory will be allocated to j and I is having the address of J so it must saw segmentation fault
#1109
552
views
1 answers
1 votes
Let "if x then y else z" denote the expression and this expression can be represented ad "?xyz" using ternary prefix operatorthe prefix operator for the following expression is If a ... ac?+ab+acB) ?a?-cd+ac*ac+abC)?a-cd?+ac*ac+abD )none
#1110
600
views
0 answers
0 votes
#1111
581
views
1 answers
0 votes
Solve the following recurrence relation :-N(h)=N(h−1)+N(h−2)+1
#1112
452
views
2 answers
1 votes
For the structure variable x , what is the difference between x and &x ?Also why is &x.val is an error ? Isn't it the address of the structure to which x is pointing to ? ... node * next; }x; int main() { x.val=3; &x.val=4; return 0; }
#1113
354
views
1 answers
0 votes
#define swap(a,b)a=a+b;b=a-b;a=a-b;void main(){int x=5,y=10;swap(x,y);printf("%d,%d",x,y);}Will the output be 10 5 or 5 10?
#1114
1.6k
views
1 answers
1 votes
What is the output of the following C program? main() { printf("%d%d%d", sizeof('3'), sizeof("3"), sizeof(3)); }a) 111. b)222 c)666 d)333
#1115
611
views
0 answers
0 votes
#1116
573
views
0 answers
0 votes
If B[8] and B[8][8] are on LHS of assignment operator will they cause compilation problemReference - Gate 2003 4.7.14 GO pdf
#1117
132
views
0 answers
0 votes
What is the time complexity of f(f(x,y),y)?
#1118
2.0k
views
0 answers
0 votes
output of the following program?#include<stdio.h>int main(){ char arr[10]; arr = "world"; printf("%s",arr); return 0;}Why compilation error in this program , explain briefly?
#1119
678
views
1 answers
1 votes
What will be the output?
#1120
563
views
0 answers
0 votes
in this question for foo it will be called with same value again and again which will result in stack overflowsimilar will be happening with bar also as ... understand why ans is given C ,please explain in some details @Rishab Gupta_2 sir