Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Webpage
Programming in C.
Recursion.
Filter
Recent
Hot!
Most votes
Most answers
Most views
Previous GATE
Featured
Hot questions in Programming in C
#1
35.8k
views
7
answers
88
votes
GATE CSE 2017 Set 1 | Question: 13
Consider the following C code:#include<stdio.h int *assignval (int *x, int val) { *x = val; return x; } void main () { int *x = malloc(sizeof(int)); if (NULL == x) return...
Arjun
35.8k
views
Arjun
asked
Feb 14, 2017
Programming in C
gatecse-2017-set1
programming-in-c
programming
pointers
+
–
#2
28.8k
views
13
answers
70
votes
GATE CSE 2017 Set 2 | Question: 55
Consider the following C program.#include<stdio.h #include<string.h int main() { char* c="GATECSIT2017"; char* p=c; printf("%d", (int)strlen(c+2[p]-6[p]-1)); return 0; }T...
Madhav
28.8k
views
Madhav
asked
Feb 14, 2017
Programming in C
gatecse-2017-set2
programming-in-c
numerical-answers
array
pointers
+
–
#3
30.7k
views
4
answers
72
votes
GATE CSE 2003 | Question: 2
Assume the following C variable declaration:int *A[10], B[10][10];Of the following expressions:$A $$A [3]$$B $$B [3]$which will not give compile-time errors if used as le...
Kathleen
30.7k
views
Kathleen
asked
Sep 16, 2014
Programming in C
gatecse-2003
programming
programming-in-c
easy
pointers
+
–
#4
28.7k
views
6
answers
110
votes
GATE CSE 2015 Set 1 | Question: 35
What is the output of the following C code? Assume that the address of $x$ is $2000$ (in decimal) and an integer requires four bytes of memory.int main () { unsigned int ...
makhdoom ghaya
28.7k
views
makhdoom ghaya
asked
Feb 13, 2015
Programming in C
gatecse-2015-set1
programming
programming-in-c
array
normal
+
–
#5
28.4k
views
4
answers
39
votes
GATE CSE 2002 | Question: 2.8
Consider the following declaration of a two-dimensional array in C:char $a[100][100]$;Assuming that the main memory is byte-addressable and that the array is stored start...
Kathleen
28.4k
views
Kathleen
asked
Sep 15, 2014
Programming in C
gatecse-2002
programming-in-c
programming
easy
+
–
#6
23.1k
views
11
answers
62
votes
GATE CSE 2015 Set 3 | Question: 26
Consider the following C program#include<stdio.h int main() { static int a[] = {10, 20, 30, 40, 50}; static int *p[] = {a, a+3, a+4, a+1, a+2}; int ptr = p; ptr++; print...
go_editor
23.1k
views
go_editor
asked
Feb 15, 2015
Programming in C
gatecse-2015-set3
programming
programming-in-c
normal
numerical-answers
pointers
+
–
#7
25.8k
views
7
answers
104
votes
GATE CSE 2017 Set 1 | Question: 36
Consider the C functions foo and bar given below:int foo(int val) { int x=0; while(val 0) { x = x + foo(val ); } return val; }int bar(int val) { int x = 0; while(val 0)...
Arjun
25.8k
views
Arjun
asked
Feb 14, 2017
Programming in C
gatecse-2017-set1
programming-in-c
programming
normal
recursion
+
–
#8
25.5k
views
9
answers
102
votes
GATE CSE 2017 Set 1 | Question: 53
Consider the following C program.#include<stdio.h #include<string.h void printlength(char *s, char *t) { unsigned int c=0; int len = ((strlen(s) - strlen(t)) c) ? strlen...
srestha
25.5k
views
srestha
asked
Feb 14, 2017
Programming in C
gatecse-2017-set1
programming
programming-in-c
normal
numerical-answers
+
–
#9
16.0k
views
4
answers
132
votes
GATE CSE 2014 Set 2 | Question: 11
Suppose $n$ and $p$ are unsigned int variables in a C program. We wish to set $p$ to $^nC_3$. If $n$ is large, which one of the following statements is most likely to set...
go_editor
16.0k
views
go_editor
asked
Sep 28, 2014
Programming in C
gatecse-2014-set2
programming
programming-in-c
normal
+
–
#10
25.0k
views
9
answers
44
votes
GATE CSE 2000 | Question: 1.16
Aliasing in the context of programming languages refers tomultiple variables having the same memory locationmultiple variables having the same valuemultiple variables hav...
Kathleen
25.0k
views
Kathleen
asked
Sep 14, 2014
Programming in C
gatecse-2000
programming
easy
aliasing
+
–
#11
21.0k
views
5
answers
38
votes
GATE CSE 2005 | Question: 1, ISRO2017-55
What does the following C-statement declare?int (*f) (int * );A function that takes an integer pointer as argument and returns an integerA function that takes an integer ...
Kathleen
21.0k
views
Kathleen
asked
Sep 22, 2014
Programming in C
gatecse-2005
programming
programming-in-c
pointers
easy
isro2017
+
–
#12
20.8k
views
11
answers
47
votes
GATE CSE 2017 Set 1 | Question: 35
Consider the following two functions.void fun1(int n) { if(n == 0) return; printf("%d", n); fun2(n - 2); printf("%d", n); } void fun2(int n) { if(n == 0) return; printf("...
Arjun
20.8k
views
Arjun
asked
Feb 14, 2017
Programming in C
gatecse-2017-set1
programming
normal
tricky
recursion
+
–
#13
16.7k
views
8
answers
49
votes
GATE CSE 2015 Set 3 | Question: 7
Consider the following C program segment.# include <stdio.h int main() { char s1[7] = "1234", *p; p = s1 + 2; *p = '0'; printf("%s", s1); }What will be printed by the pro...
go_editor
16.7k
views
go_editor
asked
Feb 14, 2015
Programming in C
gatecse-2015-set3
programming
programming-in-c
normal
array
+
–
#14
26.0k
views
6
answers
85
votes
GATE IT 2006 | Question: 50
Which one of the choices given below would be printed when the following program is executed?#include <stdio.h void swap (int *x, int *y) { static int *temp; temp = x; x ...
Ishrat Jahan
26.0k
views
Ishrat Jahan
asked
Oct 31, 2014
Programming in C
gateit-2006
programming
programming-in-c
normal
parameter-passing
+
–
#15
16.6k
views
8
answers
51
votes
GATE CSE 2005 | Question: 32
Consider the following C program:double foo (double); /* Line 1 */ int main() { double da, db; //input da db = foo(da); } double foo (double a) { return a; }The above cod...
Kathleen
16.6k
views
Kathleen
asked
Sep 22, 2014
Programming in C
gatecse-2005
programming
programming-in-c
compiler-design
easy
+
–
#16
19.6k
views
4
answers
59
votes
GATE CSE 2014 Set 2 | Question: 40
Consider the following function.double f(double x){ if( abs(x*x - 3) < 0.01) return x; else return f(x/2 + 1.5/x); }Give a value $q$ (to $2$ decimals) such that $f(q)$ wi...
go_editor
19.6k
views
go_editor
asked
Sep 28, 2014
Programming in C
gatecse-2014-set2
programming
recursion
numerical-answers
normal
+
–
#17
16.0k
views
6
answers
5
votes
column major in 3d array
Consider 3 dimensional Array A[90] [30] [40] stored in linear array in column major order. If the base address starts at 10. The location of A[20] [20] [30] is __________...
Pankaj Joshi
16.0k
views
Pankaj Joshi
asked
Jan 26, 2017
Programming in C
array
programming-in-c
data-structures
+
–
#18
6.5k
views
3
answers
4
votes
GATE CSE 2024 | Set 1 | Question: 8
Consider the following $\mathrm{C}$ program:#include <stdio.h int main() { int a=6; int b = 0; while (a<10) { a = a / 12+1 ; a += b ;} printf ("%d", a); return 0 ; }Whi...
Arjun
6.5k
views
Arjun
asked
Feb 16
Programming in C
gatecse2024-set1
programming
programming-in-c
output
+
–
#19
18.5k
views
2
answers
1
votes
bubble sort
a machine took 200 sec to sort 200 names using bubble sort . in 800 sec it can approx sort how many namesa)400 b)800 c)750 d)850
Sanjay Sharma
18.5k
views
Sanjay Sharma
asked
May 10, 2016
#20
22.9k
views
5
answers
68
votes
GATE CSE 2017 Set 1 | Question: 55
The output of executing the following C program is _______________ .#include<stdio.h int total(int v) { static int count = 0; while(v) { count += v&1; v >>= 1; } return c...
srestha
22.9k
views
srestha
asked
Feb 14, 2017
Programming in C
gatecse-2017-set1
programming
programming-in-c
normal
numerical-answers
+
–
Page:
1
2
3
4
5
6
...
206
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register