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

#581
1.5k
views
1 answers
1 votes
#include <stdio.h>main (){unsigned x = -10;int X = 20;if (X > x) printf ("Hello");else{ printf ("%d",x); printf ("Jello"); }}
#582
1.3k
views
0 answers
0 votes
#include<stdio.h>void main(){int p=-8;int i= (p++,++p);printf("%d\n",i);}
#583
306
views
0 answers
0 votes
#584
1.5k
views
0 answers
0 votes
Are deletion and insertion commutative in nature for BST??
#585
209
views
0 answers
0 votes
The correct answer as you can see is given bellow but I think the condition a[k]>a[max] is wronginstead a[k]<a[max] is correct…someone please check it….!
#586
292
views
0 answers
0 votes
Its always a confusion how Recursion works with for loop. Explain a brief.
#587
199
views
0 answers
0 votes
#588
783
views
1 answers
0 votes
#include<stdio.h>int fun(int arr[]){ arr=arr+1; printf("%d",arr[0]);}int main(void){ int arr[2]={10,20}; fun(arr); printf("%d",arr[0]); return 0;}A.COMPILE ERROR B.20,10C.10,20 D.20,20
#589
495
views
0 answers
2 votes
Q.18 a. Hellob. Worldc. None
#590
181
views
0 answers
0 votes
integer overflow problemheap overflow problemnone
#591
444
views
0 answers
1 votes
#592
193
views
0 answers
1 votes
#593
478
views
0 answers
0 votes
what does putchar(x&m) does in the question?
#594
374
views
1 answers
0 votes
What is the output of the following $\text{C}$ program?#include<stdio.h> int main(void) { struct bitfields { int bits_1 : 2; int bits_2 : 4; int bits_3 : 4; int bits_4 : 3; } bit = {2, 3, ... $2 \; 3 \; 8 \; 7 $
#595
287
views
0 answers
0 votes
Consider the following $\text{C}$ program.#include<stdio.h> #define XOR(a, b) (a) ^ (b) void func (int *a, int *b) { *a = XOR (*b, *a); *b = XOR (*a, *b); * ... $20 \; 20$10 \; 10$10 \; 20$
#596
474
views
3 answers
2 votes
What is the output of the following $\text{C}$ program?#include<stdio.h> int main(void){ char s1[] = “Hello”; char s2[] = “World!”; s1 = s2; printf(“%s”,s1); } “World!”“HelloWorld!”“Compilation error”“Hello”
#597
266
views
0 answers
0 votes
Consider the following code.#include<stdio.h> int main(int argc, char **argv) { printf( %s\n , argv[0]); return 0; } ... of the program when executed with the following command: ./simple hello worldWorldHelloSegmentation fault./simple
#598
462
views
2 answers
0 votes
#include<stdio.h>int main(){ code(4); return 0;}int code(int m){ if(m>0){ int i=1; for(;i<3;i++){ code ... "); } }return 0;}the number of times made easy will be printed? plz explain in detail
#599
339
views
0 answers
0 votes
int A(int m, int n){ if (m==0) return (n+1); if (n==0) return (m-1, 1); return A(m-1, A(m, n-1));}the output corresponding to A(1,7) will be_____________’Please explain in details.
#600
273
views
1 answers
0 votes
what does 6[C] signifies here?