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

#1421
187
views
0 answers
0 votes
#1422
444
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 ope...
#1423
703
views
2 answers
1 votes
Int main(){unsigned int x[4][3]={{1,2,3},{4,5,6},{7,8,9},{10,11,12}}Printf("%u%u%u",x+3,*(x+3),*(x+2)+3);}Assume that address of x is 2000And intrger requires four byte o...
#1424
605
views
0 answers
0 votes
#1425
482
views
3 answers
0 votes
what is the output of printf("%d",printf("gate19")?
#1426
673
views
1 answers
0 votes
#include<stdio.h>#define funct(x) x*x+xint main(){ int x; x=36+funct(5)+funct(3); printf("%d",x); return 0;}
#1427
149
views
0 answers
0 votes
#include <stdio.h int main(void) { char a[5] = { 1, 2, 3, 4, 5 }; char *ptr = (char*)(&a + 1); printf("%d %d\n", *(a + 1), *(ptr - 1)); return 0; }what is o/p of this pro...
#1428
448
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 ...
#1429
252
views
1 answers
0 votes
#1430
5.6k
views
4 answers
8 votes
What is the output of the following program?#include<stdio.h int tmp=20; main() { printf("%d", tmp); func(); printf("%d", tmp); } func() { static int tmp=10; printf("%d",...
#1431
519
views
0 answers
0 votes
Is my analysis correct?I analyze code that if it will take 1->2->3 and 4->1->2 as inputthen output will be reverse of 5->3->2 i.e. 2->3->5Why code is showing runtime erro...
#1432
564
views
1 answers
0 votes
What is a variable pointer? please note the question is not asking about pointer variables, but the specific term.
#1433
717
views
1 answers
0 votes
anyone please explain me how to find loc in lower triangular matrix , i am getting little bit confuse suppose matrix is ...
#1434
686
views
0 answers
0 votes
Is there any graph whose number of BFS and DFS traversals are different?If so which graph.
#1435
488
views
0 answers
0 votes
https://gatecse.in/data_types_operators_in_c/ Q7. #include <stdio.h>int main(){ char *p = "Hello World"; char q[] = "Hello World"; printf("%zd %zd", sizeof p, s...
#1437
477
views
0 answers
0 votes
Option B ? Following is a function Mystery() which takes a list and sorts it. Line 1and Line 2 are left blank intentionally.
#1438
573
views
1 answers
0 votes
Solve the following recurrence relation :-N(h)=N(h−1)+N(h−2)+1
#1439
303
views
0 answers
0 votes
Please provide solution
#1440
1.8k
views
2 answers
0 votes
#include<stdio.h>int f(int x,int *py,int ppz){ int y,z; ppz+=1; z= ppz; *py+=2; y=*py; x+=3; return(x+y+z);}void main(){ int c,*b, a; c=4; b=&c; a=&b; print...