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

#1561
709
views
2 answers
0 votes
#1562
275
views
1 answers
0 votes
What is the Output of Following Program Snippet ?#include <stdio.h struct Key{ int X; char P; };int main(){ struct Key Values[] = {10,'A',20,'B',3...
#1563
566
views
1 answers
0 votes
#1564
701
views
1 answers
0 votes
// C program to illustrate sizes of// pointer of array#include<stdio.h>int main(){ int arr[] = { 3, 5, 6, 7, 9 }; int *p = arr; printf("p = %p\n", p); pr...
#1565
1.2k
views
2 answers
0 votes
How many lines of output does the following C code produce?#include<stdio.h main() { float sum=0.0,j=1.0,i=2.0; while (i/j 0.001) { j=j+1; sum=sum+(i/j); printf("%f\n", ...
#1566
399
views
2 answers
0 votes
Convert this infix expression to postfix form ?$3*log(x+1)*\dfrac{a}{2}$
#1567
222
views
1 answers
0 votes
#include<stdio.h>void main(){int i=2;printf("%d %d",++i,++i);}this program give output 4,4 .but according to rule it must provide o/p like 4,3.why it give o/p like 4,4.pl...
#1568
1.3k
views
1 answers
0 votes
What is the output???
#1569
161
views
1 answers
0 votes
What are start and stop pointers in linked list representation of stack?
#1570
597
views
1 answers
0 votes
Please explain solution in brief . #include <stdio.h void f(char ); int main() { char *argv[] = { "ab", "cd", "ef", "gh", "ij", "kl" }; f(argv); return 0; } void f(char ...
#1571
4.1k
views
1 answers
0 votes
The friend functions are used in situations where:(A) We want to have access to unrelated classes(B) Dynamic binding is required(C) Exchange of data between classes to ta...
#1572
464
views
0 answers
0 votes
You are given an array of N integers, A1, A2 ,…, AN. Return maximum value of f(i, j) for all 1 ≤ i, j ≤ N.f(i, j) is defined as |A[i] - A[j]| + |i - j|, where |x| d...
#1573
360
views
0 answers
0 votes
What is the value of p and q at the end?#include<stdio.h>int main(){ int n=1024; int p=0,q=0; int i,j; for( i = 1;i<=n;i=2*i) p=p+5; for(j = 1;j<=p;...
#1574
628
views
2 answers
0 votes
How far is Defining a function and macro related with each other?
#1575
428
views
0 answers
0 votes
How Format specifiers in C works?If the Code is :#include <stdio.h int main(void) { // your code goes here char *s= "First Name"; int x= 12345; printf("%-15s%c\n", "First...
#1576
2.5k
views
3 answers
1 votes
What is the output of the following program: (Assume that the appropriate preprocessor directives are included and there is not syntax error)main( ) { char S[]="ABCDEFGH"...
#1577
683
views
3 answers
1 votes
How to perform string and char operation in programming ? Please explain and also provide the solution
#1578
294
views
1 answers
0 votes
int main(){ fun(4);return 0;}int fun(int n){ if(n>0){ int i=1; for(;i<3;i++){ ...
#1579
469
views
1 answers
0 votes
#1580
657
views
1 answers
0 votes
They have given answer B , but after running this program getting runtime error. Please explain