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

#961
1.4k
views
2 answers
3 votes
#962
1.6k
views
2 answers
1 votes
int main() { int a =50; switch(a) { default: a=45; case 49: a++; case 50: a--; case 51: a =a+1; } printf("%d",a); }my doubt is the default case is not executed here why??, what is a value of a the end??
#963
285
views
0 answers
0 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);}42 421 142 336336 42
#964
795
views
1 answers
0 votes
what is wrong with this code? It shows segmentation fault#include<stdio.h>#include<stdlib.h>void main(){ int i,j,count=1; int **a=(int**)malloc(3*sizeof(int*)); for(i=0; i<3; ... ("%d ",a[i][j]); } printf("\n"); }}
#965
153
views
0 answers
0 votes
Can anyone please explain the step wise solution for the same?
#966
316
views
0 answers
0 votes
why we use parameter passing technique in C??ORpurpose of using "parameter passing technique"??ORwhat is the advantage of using it in C??
#967
428
views
1 answers
0 votes
#968
702
views
1 answers
1 votes
/**************************************find ouput***************************************#include <stdio.h>int main(){ { int a [2][3][2]={{ {2,4} , {7 ,8} ... ; printf("%u%u %u %d \n" , a + 1 , *a + 1 , **a + 1 , ***a + 1); } return 0;}
#969
899
views
0 answers
0 votes
Caption
#970
684
views
1 answers
1 votes
can anyone explain by using static and dynamic programing ? what will be output for static and dynamic? #include<stdio.h>int x=10;void part1(int *a){*a+=x++;printf("%d", ... *b*x;part1(&x);printf("%d",x);}void main(){part2(&x);part1(&x);}
#971
775
views
0 answers
0 votes
/* sizeof(int)=4;sizeof(float)=8;sizeof(unsigned char)=1 ; */What is the output of the following program ?#include<iostream>#include<stdio.h>using namespace std;int main(){ ... .f=220.5; printf("data.i: %d\n",data.i); return 0;}
#972
228
views
0 answers
0 votes
Are these type of questions is still in the syllabus?Should I really focus on these type of questions at this time?Consider the following code written in a pass- ... will print 13 and -2 Exactly the following set of statement(s) is correct:
#973
568
views
0 answers
1 votes
#include <stdio.h>char *someFun1() { char temp[] = "string"; return temp; }char *someFun2() { char temp[] = {'s','t','r','i','g'};return temp;} int main() { puts(someFun1()); puts(someFun2()); }Please explain the output?
#974
1.0k
views
1 answers
0 votes
When are linked lists considered linear data structures?A) If it is based on storageB)If it is based on access strategiesC) Both a and bD) Neither a and b
#975
981
views
0 answers
0 votes
#include <stdio.h>int main(){ struct {int a[2];} arr[] = {{1},{2}}; printf("%d %d %d %d",arr[0].a[0],arr[0].a[1],arr[1] ... return 0;}How the memory is allocated and initialized in whole execution of this process. Please explain anybody .
#976
620
views
2 answers
0 votes
In the switch statement, if we write default case above all then will it be executed?a = 2;switch(a){default : print("abc");case 2 : print("xyz");}what will be the o/p ?
#977
764
views
1 answers
0 votes
Question:-Consider the following program fragmenta = 0 for (x = 1; x < 31; ++x) for (y = 1; y < 31; ++y) for (z = 1; z < 31; ++z) if ... the above given program isOption (A) : 3000Option (B) : 1000Option(C) : 27000Option(D) : None of these
#978
1.7k
views
5 answers
2 votes
What is the output???
#979
583
views
0 answers
0 votes
#980
602
views
0 answers
0 votes
#include <stdio.h>int main(void) { int i=10; printf(" %d %d %d",i==10,i=40,i>15 );} Conceptsundefined behaviorfloating point representation