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

#1061
584
views
2 answers
2 votes
Sum of the value printed by Rec(6)?
#1062
489
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.
#1063
506
views
0 answers
0 votes
#1064
152
views
1 answers
0 votes
#1065
533
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; }
#1066
735
views
0 answers
0 votes
#1067
223
views
0 answers
0 votes
#1068
201
views
0 answers
0 votes
#1069
265
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 ... a pointer, how bit field cannot contain a pointer?Are these not contradictory?
#1070
685
views
0 answers
0 votes
Something wrong with the code or is it working fine ?
#1071
354
views
1 answers
0 votes
#1072
501
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", ... ? What will sizeof *p and sizeof *q give?I am getting the output as 4 112 1
#1073
1.3k
views
0 answers
1 votes
#include <stdio.h>main(){ int arr[5]; printf("%p,%p\n",arr,&arr);}How do both print the same address?
#1074
401
views
0 answers
2 votes
We know range of signed char -128 to 127. But in the given code answer is 1200. So, here we should get an overflow.Integer Promotion occurs which prevents to cause it overflow. How ... d = (a * b) / c; printf ("%d ", d); return 0; }
#1075
175
views
0 answers
0 votes
#1076
683
views
1 answers
0 votes
The answer for this is given as 4100
#1077
579
views
1 answers
0 votes
Lines from Dennis Ritchie1)The variables named in a structure are called members. A structure member or tag and an ordinary (i.e., non-member) ... p1 and also incrementing valueHow copying and incrementing done same time in structures?
#1078
1.1k
views
0 answers
2 votes
Q. What is the output of following program?int main(){ register int Data =10; int *piSumData = NULL; piSumData = &Data; *piSumData = 5; printf("%d",*piSumData); }1. Run time error2. garbage value3. 104. 5
#1079
625
views
1 answers
1 votes
#include <stdio.h> int main() { long int a = 0x7fffffff * 0x7fffffff; long int b = 0x7fffffff * 0x7fffffffl; printf("a = %ld, b = %ld\n", a, b); return 0; }What will be output if sizeof(int) is 4 and sizeof(long int) is 8.
#1080
507
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 ==> ... right nodes atmost differ by 1.Can we simplify further.... i am not able to do further...