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

#1361
249
views
1 answers
0 votes
pointers question, can someone please explain me solution
#1362
179
views
0 answers
1 votes
IIndex of node in BST = no of nodes in left subtree +1 . Is this definition valid
#1363
368
views
1 answers
1 votes
from where we can practice different variety of programming questions related to output except previous year
#1364
421
views
1 answers
3 votes
#include <stdio.h> main() { float a ; double b ; scanf("%f %lf",&a, &b); if(a==b) printf ("true\n"); else if(a>b) printf("a>b"); else if(a<b) printf( ... input $a = 1.01, b= 1.01$ output = a<bCan anyone explain output of Case2 and Case3
#1365
784
views
1 answers
1 votes
#include <stdio.h> main() { if (sizeof(int) > -1) printf("True"); else printf("False"); }I expect output is True. But the output is False. Why? explain!!
#1366
401
views
1 answers
1 votes
#include<stdio.h> main() { char *p = 0; *p = 'a'; printf("value in pointer p is %c\n",*p); }What is the output of this code ? Why?
#1367
174
views
0 answers
0 votes
#1368
298
views
0 answers
0 votes
#1369
439
views
2 answers
0 votes
#1370
326
views
1 answers
0 votes
#include<stdio.h> int main() { char *x; int a = 512; x = (char *) &a; x[0] = 1; x[1] = 2; printf("%d\n",a); return 0; }What is the output of above program?Machine dependent$513$258$Compiler Error
#1371
273
views
0 answers
0 votes
#1372
911
views
2 answers
0 votes
#1373
317
views
1 answers
0 votes
#include<stdio.h> typedef int ARRAY[10][10]; int main() { ARRAY arr[2]; printf("Size is %d",sizeof(arr)); } The program on running ... providing alternate names to existing datatypes. Can someone explain what's happening? Or correct me
#1374
1.2k
views
2 answers
3 votes
how to start competitive programming ? will it help during GATE preparation
#1375
374
views
0 answers
0 votes
I have a small doubt.Chapter 25 All pairs shortest path of CLRS says following:To solve the all-pairs shortest-paths problem on an input adjacency matrix, we need to ... with root $i$ and predecessor subgraph of $G$ for $i$) the same?
#1376
3.6k
views
2 answers
1 votes
How many times will the following loop be executed if the input data item is $01234 $?while(c=getchar()!=0) { }InfinitelyNeverOnce5 times
#1377
574
views
2 answers
0 votes
The value of $\color{green}{ab}$, if $\color{red}{ab}$ & $\color{red}{0x3f}$ equals $\color{red}{0x27}$ is __________?$\color{blue}{\text{047}}$\color{blue}{\text{0x0f}}$\color{blue}{\text{0xf3}}$\color{blue}{\text{0x27}}$
#1378
1.2k
views
1 answers
0 votes
What data structure would you most likely see in a non-recursive implementation of a recursive algorithm?Linked ListStack QueueTreeplease explain also
#1379
630
views
2 answers
2 votes
Consider the declaration below:typedef char *Str_typed; #define Str_defined char* Str_typed s1, s2; Str_defined s3, s4;Which one of the following statements is ... are character pointers while $s4$ is a characterIV. None of the above
#1380
255
views
0 answers
0 votes
what will be the output of codemain(){int c=5;printf("%d %d ",++c, c++);}