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

#641
641
views
1 answers
0 votes
#642
556
views
0 answers
0 votes
The number of nodes of degree one in a complete binary tree of 2$^{30}$ nodes is?(1) 2$^{29}$ +1(2) 2$^{29}$(3) 2$^{30}$(4) 1
#643
657
views
1 answers
0 votes
What will be the output of the following C program?#define b ++avoid main(){ char a=2689; printf(“%d”, b);}
#644
213
views
1 answers
0 votes
why is the output 8 and not 16 we are adding 4 to the strlen of b which is 12???
#645
351
views
0 answers
0 votes
Find out the output of the given program?include<stdio.h> int main() { char s[] = "Hello"; char *ptr = s ; *ptr++; // please explain this line ptr++; printf("%s",ptr); return 0; }
#646
279
views
0 answers
0 votes
DELELTE : 5 pop and 4 push require s2 (4 3 2) s1(empty)Insert (5) : s2(4 3 2) s1(5) 1 pushdelete : pop from S2 (4 3) s1 (5) 1 poptotal : 6 POP , 5 PUSHwhere I’m wrong
#647
753
views
1 answers
1 votes
Assuming that a pointer take 4 bytes and the size of an integer is 2 bytes. What is the size of the *a in declaration: int (*a) [10][2] ? 4802040
#648
2.8k
views
0 answers
0 votes
#include <stdio.h>int main(){ int i = 3; while (i--) { int i = 100; i--; printf("%d ", i); } return 0;}
#649
477
views
0 answers
0 votes
consider the following function secret (). unsigned char secret(unsigned char x,int y) { return ((x & 0x0F)<<y | (x & 0xF0)>>y); } int main() { ... x,4)); return0; }the output obtained corresponding to the function call secret(100,4) is _
#650
2.8k
views
2 answers
0 votes
The program fragment: int i= 263; putchar (i)(a) prints 263 (b) prints the ASCII equivalent of ... (d) prints garbage
#651
527
views
0 answers
0 votes
#652
513
views
1 answers
0 votes
here j++ executes only if s[i]==c[j] ,and i++ executes always sowhen s= “response” after while loop i will be 8 but j will be 0so it should be falsebut given answer is- trueplease tell me where i am wrong??
#653
487
views
1 answers
0 votes
A possible output of the following program fragment: static char wer [ ] [5] = { harmot , merli , axari );printf ({ %d %d , wer, wer [0], &wer [0] [0 ... (d) 262164 262165 262165Solution: ?Please explain it, how it is printed
#654
711
views
0 answers
0 votes
The possible output of printf ( %d %d , wer, wer+1); is(a) 262262 (b) 262263(c) 262265 ... (d) 262266Solution: ?Please explain
#655
240
views
0 answers
0 votes
I don”t think 3rd statement is correct.
#656
374
views
0 answers
0 votes
#include<stdio.h> int code(int m){ if(m>0){ int i=1; for(;i<3;i++){ code(m-i); code(m-i-1); printf("GATE2019"); } } } int main() { code(4); return 0; }How many times GATE2019 will be printed?
#658
1.3k
views
1 answers
5 votes
someone please explain this:how does a+1 differs from &a+1 in above code?detailed explanation would be of great help as they incremented &a by 6 and NOT 1
#659
421
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); } OPTIONS:42 421 142 336336 42
#660
551
views
1 answers
0 votes