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
491
views
3 answers
0 votes
what is the output of printf("%d",printf("gate19")?
#1102
336
views
1 answers
1 votes
main(){int x=68;char y='D';if (x!=y)printf("true");else printf("false");}the output is coming false. but why?according to me the base address is compared so answer should be true?
#1103
455
views
1 answers
1 votes
In the below code Why I am getting the output as 10 instead of 11? .if I replaces k== with k= then the output is correct which is 11. is there any property of ternary operator behind ... i=10;int k=0;k==1>0?i++:2;printf("%d", i);return 0;}
#1104
824
views
0 answers
1 votes
int main(){ static int i=5; if(--i){ main(); printf("%d ",i); }} This program answer is 0 0 0 0 .how is this? Please explain to me.
#1105
234
views
1 answers
0 votes
Which method is correct for building max- heap ...why other one is wrong ??
#1106
159
views
0 answers
0 votes
#1107
270
views
0 answers
1 votes
Are this time complexities right..len=alpha
#1108
268
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
#1110
208
views
1 answers
1 votes
#1111
679
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?
#1112
422
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
#1113
394
views
1 answers
0 votes
#1114
257
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;}
#1115
466
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
#1116
555
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
#1117
600
views
0 answers
0 votes
#1118
586
views
1 answers
0 votes
Solve the following recurrence relation :-N(h)=N(h−1)+N(h−2)+1
#1119
454
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; }
#1120
355
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?