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

#761
1.2k
views
0 answers
1 votes
int main(){ unsigned int a = 1000;int b = -1;if (a>b) printf("A is BIG! %d\n", a-b);else printf("a is SMALL! %d\n", a-b); return 0;} ... (-MAX+1001)=10013.The presence of "%d " in printf has no effect ,the result will be unsigned always
#762
198
views
1 answers
0 votes
int a=10if(i++<10),if(++i<10).,while(i++<10) what is logic behind
#763
298
views
1 answers
0 votes
#include<stdio.h>int main(){int num=10;do{while(num++ <10);}while(num++ <=11);printf(“%d”,num);}
#764
403
views
0 answers
–1 votes
#include<stdio.h>main(){char s[7]="1234",*p;p=s+2;*p=0;printf("%s",s);}
#765
593
views
1 answers
0 votes
main() { int x=1,y=0,z=5; int a=x&&y&&z++; printf("%d",z); }
#766
1.5k
views
0 answers
1 votes
Suppose a circular queue of capacity (n - 1) elements is implemented with an array of n elements.Now, in this queue what will be condition for FULL and ... that must be array index more than FrontAm I right?Then what equation will valid?
#767
6.9k
views
3 answers
2 votes
#768
1.6k
views
1 answers
0 votes
#769
568
views
0 answers
0 votes
#770
598
views
1 answers
0 votes
What will be the output of the following program[Addresses of the variables are assigned continuous]#include<stdio.h>void main(){int a = 4, b = 8, c = 12, d, e, f ;int *x=&a , ... - e ;printf("%d" ; f) ;}(A)Compiler error(B) -8;(C)8;(D) 2;
#771
269
views
1 answers
0 votes
#include<stdio.h>void main(){ int i ;for(i=0; i<5; i++)f() ;}void f(){static int x ;x=5 ;x++ ;printf("%d", x);}OUTPUT OF THE FUNCTION IS(A)6,6,6,6,6(B)6,7,8,9,10(C)5,5,5,5,5(D)5,6,7,8,9
#772
1.3k
views
1 answers
0 votes
To reverse a Singly Linked List is the below is correct code? (or) need to change Struct node *reverse(struct node *start) { Struct node *prev,*ptr,*next; ... } start=prev; return start; Plz tell me, is here all link updating correctly?
#773
653
views
0 answers
1 votes
The gray code for a decimal number N is . This number N is converted into P which belongs to 84 − 2 − 1 code system. What is the Hexadecimal representation for P?(A) ABC(B) F55(C) 170(D) 790
#774
1.0k
views
0 answers
1 votes
Consider an unrolled linked list with $n$ elements.This list stores multiple elements in each node.What is the worst case time complexity to find the $k^{th}$ element if the number of nodes and ... $D)O(n^{2})$
#775
1.4k
views
1 answers
0 votes
Is it static declaration or static assignment?int main() { int x=20; static int y=x; if(x==y) printf("Equal"); else printf("Not Equal"); return 0; }What is output?and why?
#776
392
views
0 answers
0 votes
#777
635
views
0 answers
0 votes
#780
163
views
0 answers
0 votes