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}}}$$

Hot questions in Programming

#1401
452
views
0 answers
1 votes
#1402
10.7k
views
2 answers
0 votes
Choose the correct remarks. A) C++ allows any operator to be overloaded. B) Some of the existing operators cannot be overloaded.C) Operator precedence cannot b...
#1403
3.2k
views
1 answers
3 votes
The average search time of hashing, with linear probing will be less if the load factorA. is far less than oneB. equals oneC. is far greater than oneD. none of the above
#1404
561
views
0 answers
0 votes
int main() { int a[10]; printf("%d",*a+1-*a+3); return 0; }Answer is given as 4 but i think it should be 8, if int is of 4 byte. Correct me if i am wrong
#1405
879
views
3 answers
1 votes
main(){int i, x=5, y=10;for(i=1;i<=2;i++){y+=f(x) + g(x);printf("%d", y);}}f(int x){int y;y=g(x);return (x+y);}g(int x){static int y=5;y=y+7;return (x+y);} Kindly explain...
#1406
2.2k
views
2 answers
1 votes
What is the output of the following program if dynamic scoping is used? int a,b,c; void func1() { int a,b; a=6; b=8; func2(); a=a+b+c; print(a); } void func2(){ int b,c; ...
#1407
352
views
1 answers
0 votes
#include <stdio.h>int main(){ char *c[]={"abhi","abhishek","abhisheksing"}; printf("%s",c [7]); return 0;}What is the output?
#1408
679
views
0 answers
0 votes
Something wrong with the code or is it working fine ?
#1409
445
views
0 answers
0 votes
include <stdio.h>int main(){ char *c[]={"abhi","abhishek","abhisheksing"}; printf("%s",(*(*(c+2)+7))); return 0;} What is the output?
#1410
445
views
0 answers
0 votes
#1411
393
views
0 answers
2 votes
We know range of signed char -128 to 127. But in the given code answer is 1200. So, here we should get an overflow.Integer Promotion occurs which prevents to cause it ove...
#1412
320
views
0 answers
1 votes
int fun(int n){int x=1,k;if(n==1) return x;for(k=1;k<n;++k)x=x+fun(k)*fun(n-k)return x;}return value of fun(5)??? how to solve this using tree method approach???
#1413
593
views
0 answers
0 votes
#1414
311
views
0 answers
1 votes
#include<stdio.h>int main(){char A[5][7][6];char *p[5][7][6];printf("%d\t", (unsigned)(A+1)-(unsigned)A);printf("%d", (unsigned)(p+1)-(unsigned)p);}What will be the outpu...
#1415
2.6k
views
1 answers
0 votes
Main (){Int x,y , z;X=y=z=1;Z=++x||++y&&++z;Printf ("x=%d y=%d z=%d",x,y,z);}
#1416
758
views
1 answers
0 votes
main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p+++*str1-32); }output is 76 pls explain.
#1417
545
views
1 answers
1 votes
Let "if x then y else z" denote the expression and this expression can be represented ad "?xyz" using ternary prefix operatorthe prefix operator for the following express...
#1418
1.8k
views
0 answers
0 votes
How should I prepare for programming test for MTEch at IIT Kanpur which will be held on 14th may? What sort of question I can expect and What should I actually practice?
#1419
320
views
1 answers
1 votes
#1420
348
views
0 answers
0 votes
#include<stdio.h>void main(){ char c[]="abhishek"; for(int i=0;i<8;i++) {c[i]="a"; printf("%c",c[i]); } }What is the error in it?