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

#1001
4.1k
views
1 answers
1 votes
consider the two declarationsvoid *voidPtr;char *charPtr;which of the following assignments are syntactically correct?(a)charPtr= voidPtr(b)*charPtr=voidPtr(c)*voidPtr=*charPtr(d)voidPtr=charPtr please explain!
#1002
666
views
2 answers
1 votes
#include<stdio.h> int main() { int x, y = 7; x = ++y + ++y + y--; printf("%d\n", x); return 0; }What is the output of this code snippet ?A. 27B. 26C. 25D. Compilation error
#1003
402
views
1 answers
0 votes
What will be the output of the below C program?#include <stdio.h> int xyz(int b) { return (b--); } int main() { int a = xyz(12); printf("%d", ++a); return 0; }(a)10 (b)11 (c)12 (d)13
#1004
3.4k
views
2 answers
0 votes
What are sequential access structures? Are arrays or linked list the sequential access structures?
#1005
2.3k
views
2 answers
2 votes
int main() { int a = 1, b = 2, c = 3; printf("%d", a += (a += 3, 5, a)); } How is this evaluated ?
#1006
1.3k
views
1 answers
1 votes
I'm trying to use the fseek() and ftell() function to find the length of the file 'test.txt' which is present in the same directory as the file ' ... fault (core dumped)' error abd the execution terminates.What's going wrong in here?
#1007
538
views
1 answers
1 votes
Please suggest on below 2 points .I'm not able to understand those 2 points.Char s[100];1.What is difference between scanf("%s",s) and scanf("%[^\n]s",s)?2.how below two codes are ... [^\n]s",s); Code 2 Scanf("%*[\n] %[^\n]",s);Thanks
#1008
408
views
1 answers
0 votes
#1009
999
views
2 answers
0 votes
What is o/p printed when i/p is =1 2 3
#1010
507
views
0 answers
0 votes
int main(){int k = 10;printf("%d%d%d%d%d%d",k++,++k,k++,++k,k++,k);return 0 ;}STEPWISE SOLUTION IS REQUIRED
#1011
624
views
1 answers
0 votes
give the complete solution with explanationint main(){ int arr [2] [2] [2] = {10,2,3,4,5,6,7,8}; int *p, *q; p = &arr[1] [1] [1]; q = (int*) arr; printf("%d ,%d \n",*p ,*q); return 0;}
#1012
1.5k
views
2 answers
1 votes
int zap(int n){if (n<=1) then zap =1;else zap = zap(n-3)+zap(n-1);}then the call zap(6) gives the values of zapGive the proper explanation
#1013
1.3k
views
1 answers
0 votes
What is the output of given program?#include<stdio.h>int main(){ int x; x = 4 > 8 ? 5!= 1<5 == 0 ? 1:2:3; printf("%d",x); return 0;}option a. 1 b.2 c.3 d.compilation error
#1014
6.6k
views
0 answers
0 votes
#include <stdio.h>void fun(int);typedef int (*pf) (int ,int );int proc(pf, int ,int);int main(){ int a = 3; fun(a); return 0; }void fun(int n){ if (n>0) { fun(--n); printf("%d,", n); fun(--n);}}
#1015
1.1k
views
1 answers
2 votes
Will the topological order for acyclic graph through indegree Elimination method and DFS method be same.Please answer the above question ?
#1016
2.1k
views
2 answers
0 votes
#include<stdio.h>int main(){ int arr[3] = {2, 3, 4}; char * p; p = arr; p =(char *)(int*)(p); printf("%d, ", *p); p = (int*)(p+2); printf("%d", *p); return 0;}Pls explain the output and also the code
#1017
275
views
1 answers
0 votes
#1018
368
views
3 answers
0 votes
#1019
1.3k
views
1 answers
0 votes
#1020
579
views
1 answers
0 votes
what is the value of z?#include <stdio.h>int main() { int a[]={3,5,6,4}; int z=0; for (int y=0;y<(sizeof(a)/sizeof int);y++) z=a[y]+value(a[ ... static int count; while(*x) { count=count+*x&1; *x>>1 ; }}