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

#1041
911
views
1 answers
1 votes
How many times made easy is printed?#include <stdio.h>int main() { c(4);return 0;}int c(int m){ if (m>0){ for(int i=1;i<3;i++){ c(m-i); c(m-i-1); printf("madeeasy") } }}
#1042
632
views
0 answers
0 votes
why this margeSort program showing time limit exceed ?#include <stdio.h> #include <stdlib.h> #include <time.h> void fillArray(int array[], int n) { time_t t; time( ... n \n Time taken for sorting: %f seconds\n\n",cpu_time_used); return 0; }
#1043
323
views
0 answers
1 votes
int fun(int n){int x=1,k;if(n==1) return x;for(k=1;k<n;++k)x=x+fun(k)*fun(n-k)return x;}return value of fun(5)??? how to solve this using tree method approach???
#1044
2.2k
views
1 answers
0 votes
struct marks{int p:3; int c:3; int m:2; };void main(){struct marks s={2,-6,5};printf("%d %d %d",s.p,s.c,s.m); } Please explain why result is 221
#1045
682
views
0 answers
1 votes
Consider 2 cases:1. Call by value result2. Call by referenceint x = 10 ;main ( ){P(x); printf (x);}P ( int a){If ( a ≤ 40 ){a = a ... to actual.Any example in which these 2 will differ in output(especially in case of function calls)?
#1046
306
views
0 answers
0 votes
Please provide solution
#1047
653
views
1 answers
0 votes
#1048
256
views
1 answers
0 votes
#1049
325
views
1 answers
1 votes
#1050
458
views
0 answers
1 votes
#1051
448
views
0 answers
0 votes
#1052
710
views
0 answers
0 votes
Why the code is not showing correct sorting ?(here pivot is smaller index element, i.e. arr[low])#include <stdio.h> #include <stdlib.h> #include <time.h> void ... (array, n); quickSort(array,low,n); printArray(array, n); return 0; }
#1053
1.5k
views
1 answers
3 votes
what is the output of the c program given below, #include<stdio.h> int main() { char pt[]="Gatelecture"; char qt[]="GATE"; int i=0; for( ;pt[i++]=qt[i++]; ); printf("%s",pt); } a. AeEeb. AaEec. aAeEd. none of the above
#1054
583
views
2 answers
2 votes
Sum of the value printed by Rec(6)?
#1055
483
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.
#1056
505
views
0 answers
0 votes
#1057
151
views
1 answers
0 votes
#1058
528
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 ... , &sum); printf("The sum is : "); printList(sum); printf("\n"); return 0; }
#1059
727
views
0 answers
0 votes
#1060
220
views
0 answers
0 votes