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

#521
283
views
0 answers
0 votes
In C language ,declaration of variables is done as follows:<var type> <name of var1> , <name of var2>;For eg: int a,b;Then why can't we use the declaration for ... we use : int *a, *b;?This might be a silly doubt but please help me out.
#522
534
views
0 answers
0 votes
Let X be the number of times the comparison inside the while loop (i.e. m <= n ) is performed, when mystery(127, 255) is called. Then the value of X is,125656466
#523
407
views
1 answers
0 votes
Output is 7.But can someone justify, how?#include <stdio.h> int f(int a, int b) { printf("%d", a + b); return 0; } int main() { f((2, 3), 4); return 0; }
#524
311
views
0 answers
1 votes
Are Call by Value and Pass by Value synonyms?What are the differences between Pass by Value and Pass by Reference?Please explain with examples.
#525
254
views
0 answers
1 votes
find the total number of comparisons-for(j=1;j<=n-1;j++){for(k=j+1;k<=n+1;j++){if(A[j]<A[k])A[j]=A[j]+2;}}so my question is ... for loop condition comparison too or not because in answer they did not consider the comparison of for loop
#526
292
views
0 answers
0 votes
is there any method to solve this question or just try every possible case
#527
431
views
0 answers
0 votes
Given i= 0, j = 1, k = – 1x = 0.5, y = 0.0What is the output of given ‘C’ expression ?x * 3 & & 3 || j | kexplanation please….
#528
482
views
0 answers
0 votes
int main(){ int a=2,b=2,c=2; printf("%d",a==b==c); return 0;}what is the output??? and what will be done during executioncan anyone explain this……...
#529
494
views
1 answers
0 votes
#include<stdio.h>int main(){ FILE *fp[2]; if((fp[0]=fp[1]=fopen("test.txt","w"))!=NULL) //test.txt file should be empty during first compiling { ... ,fp[0]); and fputs("two",fp[1]); can anyone tell me with explanation...please .
#530
389
views
0 answers
1 votes
i have 1 doubt regarding the initialization of highlighted portion.Will the value of ’k’ change at each iteration or it will remain same (whatever value assigned to it during for loop initialization) ?
#531
558
views
1 answers
0 votes
in a sorted array of n distinct element finding i th largest element take o(1) . true / false
#532
283
views
1 answers
0 votes
explain the soln...why multiplying by 4 and [-2]?
#533
317
views
0 answers
0 votes
#534
208
views
0 answers
0 votes
doubt with the semicolon after for loop and if ….……..please check the question
#535
426
views
0 answers
0 votes
How p+i = &(i[p])Please explain someone.
#536
643
views
1 answers
1 votes
What is the output of the following c programvoid fun1(int *a, int *b, int *c) { *a = *b; *b = *c; *c = *a; } Void fun2(int a, int b, int c) { a = b; b = c; c = a ... $40$5$-5$
#537
746
views
1 answers
1 votes
#define lol(a) a+a*aint main(void) { int a=3;printf("%d",lol(a+2)); return 0;}what is the output ?
#538
417
views
0 answers
0 votes
Consider a binary tree for every node | P - Q | <= 2. P represents number of nodes in left subtree of S and Q represents number of nodes in right subtree of S ... number of nodes present in such tree of height h = 4 ( Root at 0 level)
#539
840
views
2 answers
0 votes
void PrintValue(int n) { if (n < 0) return; else { printf(n); printValue(--n); printValue(n--); printf(n); } }Output for Print(5) ?
#540
237
views
0 answers
0 votes
what is the use of void in main(void)?my code is:#include <stdio.h>#include <conio.h>int main(int argc,char *argv[]) { int i; if( argc >= 2 ) ... ..anyone please tell me what is the reason and what is the use of void in the main(void)