Previous GATE Questions in Programming in C

3 votes
3 answers
3
2 votes
2 answers
6
​​Consider the following $\mathrm{C}$ function definition.int f (int x, int y){ for (int i=0 ; i<y ; i++ ) { x= x + x + y; } return x; }Which of the following stateme...
70 votes
13 answers
12
25 votes
7 answers
16
Consider the following C program.#include<stdio.h int main () { int m=10; int n, n1; n=++m; n1=m++; n ; n1; n-=n1; printf(“%d”, n); return 0; }The output of the prog...
30 votes
11 answers
17
26 votes
3 answers
18
Match the following:$$\begin{array}{|ll|ll|}\hline P. & \text{static char var ;} & \text{i.} & \text{Sequence of memory locations to store addresses} \\\hline Q. & \text...
0 votes
1 answer
20
Write a LISP function to compute the product of all the numbers in a list. Assume that the list contains only number.
To see more, click for the full list of questions or popular tags.