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{2022}&\textbf{2021-1}&\textbf{2021-2}&\textbf{2020}&\textbf{2019}&\textbf{2018}&\textbf{2017-1}&\textbf{2017-2}&\textbf{2016-1}&\textbf{2016-2}&\textbf{Minimum}&\textbf{Average}&\textbf{Maximum}
\\\hline\textbf{1 Mark Count} & 1 &0&2&1&2&2&1&2&2&1&0&1.4&2
\\\hline\textbf{2 Marks Count} & 2&2&2&1&3&3&4&4&2&2&1&2.5&4
\\\hline\textbf{Total Marks} & 5&4&6&3&8&8&9&10&6&5&\bf{4}&\bf{6.4}&\bf{10}\\\hline
\end{array}}}$$

Recent questions in Programming

0 votes
1 answer
1381
What would be the equivalent pointer expression for referring the array element a[i][j][k][l]?A. ((((a+i)+j)+k)+l)B. *(*(*(*(a+i)+j)+k)+l)C. (((a+i)+j)+k+l)D. ...
1 votes
2 answers
1382
#include <stdio.h int main() { //code int x; printf("%d",printf("A")+printf("BC")*printf("DEF")); return 0; }What should be the output of following program? Please explai...
0 votes
0 answers
1385
This code executes successfullyint main() {char str[20];gets(str);puts(str);return 0;}whereas the below code gives runtime errorint main() {char *str;gets(str);puts(str);...
3 votes
4 answers
1386
Assume sizeof an integer and a pointer is 4 byte. Output?#include<stdio.h #define R 10 #define C 20 int main() { int *p[R][C]; printf("%d",sizeof(*p)); printf("%d",sizeof...
0 votes
1 answer
1387
0 votes
4 answers
1388
What will the following code fragment output: void fun(int *a, int b) { b++; a = a + 3; } void main() { int A[5] = {0,1,2,3,4}; fun(A, A ); printf(%d, A ); }
3 votes
1 answer
1389
main() { float a=.5, b=.7; if(b<.7) if(a<.5) printf("TELO"); else printf("LTTE"); else printf("JKLF"); }
4 votes
3 answers
1391
#include<stdio.h int main() { int a = 12; void *ptr = (int *)&a; printf("%d", *ptr); getchar(); return 0; }A12BCompiler ErrorCRunt Time ErrorD0
0 votes
1 answer
1392
0 votes
1 answer
1393
The Correct answer is c but how?int main(){ int a=210,b=120,c; c=a>b?1,2,3:2,5,6,7; printf("%d",c);}ans:-a) 1b) 2c) 3d) Error.
0 votes
2 answers
1394
printf("%d",20/3.2); or printf("%i",20.0/3); or %u // why does it prints garbage value Could someone explain(or provide info) about format specifiers %d, %s, %f.....
0 votes
1 answer
1395
pointers question, can someone please explain me solution
1 votes
0 answers
1396
IIndex of node in BST = no of nodes in left subtree +1 . Is this definition valid
1 votes
1 answer
1397
from where we can practice different variety of programming questions related to output except previous year
3 votes
1 answer
1398
1 votes
1 answer
1399
#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!!
1 votes
1 answer
1400
#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?