search
Log In

Webpage

Programming in C. Recursion.

$$\small{\overset{{\large{\textbf{Mark Distribution in Previous GATE}}}}{\begin{array}{|c|c|c|c|c|c|c|c|}\hline
\textbf{Year}&\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}&2&2&1&2&2&1&1&1.7&2
\\\hline\textbf{2 Marks Count}&3&3&4&4&2&2&2&3&4
\\\hline\textbf{Total Marks}&8&8&9&10&6&5&\bf{5}&\bf{8}&\bf{10}\\\hline
\end{array}}}$$

Recent questions in Programming

0 votes
1 answer
1
If there is negative edge cycle then dijkstra algorithm will give correct path or not same thing about bellman ford also? Bellman ford always halts or not?
asked Jan 27, 2019 in Programming iamdeepakji 76 views
0 votes
1 answer
2
void foo(int n) { if(n==1) printf("#"); for(i=0;i<n;i++) foo(n-1); } Number of time # will be printed , when foo(7) is called_________
asked Jan 27, 2019 in Programming srestha 89 views
0 votes
1 answer
3
maximum and minimum height of the avl tree with 42 node
asked Jan 27, 2019 in Programming amit166 50 views
0 votes
1 answer
4
What is the exact definition of full and complete binary tree? And what is the relation between them.
asked Jan 27, 2019 in Programming Psnjit 42 views
0 votes
1 answer
5
formule for 1.number of binary tree 2.number of binary search tree 3.number labeled binary tree 4.number of unlabeled binary tree
asked Jan 27, 2019 in Programming amit166 48 views
1 vote
2 answers
6
Consider the following C program: Which of the following represents output of above C program? A)1, 0 B)2, 0 C)1, 1 D)2, 1
asked Jan 26, 2019 in Programming pream sagar 93 views
1 vote
1 answer
7
what is the output???? and how it internally converted to int when we are printing with %d format specifier?? when i run in my ide i got 50 as output and i donn’t know how it came? can anyone explain how 50 came #include <stdio.h> int main() { char a = '12'; printf("%d", a); return 0; }
asked Jan 25, 2019 in Programming shiva0 100 views
0 votes
0 answers
8
Ouput please explain 2nd and 3rd Output.
asked Jan 25, 2019 in Programming Abhisek Tiwari 4 90 views
0 votes
0 answers
9
T(n)=sqrt(n).T(sqrt(n))+cn for n>2 with some positive constant c and T(2)=1
asked Jan 25, 2019 in Programming namankumar 90 views
1 vote
1 answer
10
asked Jan 24, 2019 in Programming bhautikng143 200 views
0 votes
1 answer
11
what is the output of the following programming???? and am confusing is unsigned int stores signed integer, and what is ~ ' this symbol ?? and what happened when assigning ~0' to y????? and what will be printed when x,y are printing and how ? can anyone tell me how it happened ..Thankyou .. ... (x == y) printf("same"); else printf("not same"); printf("\n x is %u, y is %u", x, y); return 0; }
asked Jan 24, 2019 in Programming shiva0 79 views
0 votes
0 answers
12
plz explain in detail with the example
asked Jan 24, 2019 in Programming SAUMYA2019 70 views
0 votes
0 answers
13
in the soln how they are taking i?
asked Jan 24, 2019 in Programming SAUMYA2019 61 views
0 votes
0 answers
14
why this program given run time error #include<stdio.h> int main ( ) { int x = 2, y = 5; if (x < y) return (x = x+y); else printf(“%d “,x); printf(“%d”,y); } https://ideone.com/AqYv40
asked Jan 23, 2019 in Programming Gurdeep Saini 84 views
0 votes
0 answers
15
Consider the following function. Void gradeup(int n) { enqueue(Q,0); enqueue(Q,1); for (i=0;i<n;i++) { x = dequeue(Q); y = dequeue(Q); enqueue(O,y); enqueue(Q+x+y); print(x); } } What is the functionality of above function gradeup? A Prints numbers from 0 to n-1 B Prints number from n-1 to 0 C Prints first n fibboacci numbers D Prints first n fibbonacci number in reverse order
asked Jan 23, 2019 in Programming Muskan Jain 96 views
0 votes
0 answers
16
here ans given is 5 and 20 but when we subtract two pointer we need to divide by data type size.here int is 4 byte.Hence ans should have been (5-1)/4 .For second part,on type casting the soln given in geeks is 5*(size of int)/size of char.This is how they arrived at 20.how?
asked Jan 22, 2019 in Programming SAUMYA2019 117 views
0 votes
1 answer
17
what is the reason…..?for error..
asked Jan 22, 2019 in Programming shiva0 76 views
0 votes
3 answers
18
answer is given 20,60 but my answer is 20,10 in solution they given that (&arr+1= base address of arr+ 1*6) how it possible . Is it true or wrong
asked Jan 22, 2019 in Programming Harshit Bajpai 86 views
0 votes
2 answers
19
let x be an integer which can take a value of either 0 or 1 .then the statement (x=0) ? x=1: x=0 x=x+1 x=1-x x=x-1 none of these according to me x=0 is always going to be true so that expression will evaluate to x=1 which is not matching with any of the option so answer should be D none of these but in answer they ‘ve given B as true please confirm it.
asked Jan 22, 2019 in Programming garimanand 93 views
0 votes
1 answer
20
Total number of ordering possible if the graph below is filled with the sequence 12,10,8,5,3,2,1,7,9 such that it satisfies the max heap property?
asked Jan 22, 2019 in Programming Vipin Rai 51 views
...