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
Most answered questions in Programming in C
#161
4.8k
views
3
answers
7
votes
ISRO2015-72
Consider the following declaration:int a, *b=&a, c=&b;The following program fragmenta=4; c=5;does not change the value of aassigns address of $c$ to $a$assigns the valu...
ajit
4.8k
views
ajit
asked
Oct 12, 2015
Programming in C
pointers
programming-in-c
isro2015
+
–
#162
8.1k
views
3
answers
7
votes
What is the difference between static scoping and dynamic scoping?
sampad
8.1k
views
sampad
asked
Oct 11, 2015
Programming in C
programming
variable-binding
+
–
#163
3.4k
views
3
answers
23
votes
TIFR CSE 2010 | Part B | Question: 37
Consider the program where $a, b$ are integers with $b 0$.x:=a; y:=b; z:=0; while y 0 do if odd (x) then z:= z + x; y:= y - 1; else y:= y % 2; x:= 2 * x; fiInvariant of...
makhdoom ghaya
3.4k
views
makhdoom ghaya
asked
Oct 10, 2015
Programming in C
tifr2010
programming
loop-invariants
+
–
#164
6.6k
views
3
answers
4
votes
Let a, b be two positive integers, which of the following options correctly relates / and %?
Let a, b be two positive integers, which of the following options correctly relates / and %?(a) b= (a/b) * b + a%b(b) b= (a%b) * b + a/b(c) a= (a/b) * b + a%b(d) a= (a%b)...
IgnitorSandeep
6.6k
views
IgnitorSandeep
asked
Oct 5, 2015
Programming in C
programming
programming-in-c
+
–
#165
1.1k
views
3
answers
2
votes
find first repeated element..
given an array of n element, what will be the time complexity to find 1st repeated element when array have more than one repeated elements??
yes
1.1k
views
yes
asked
Oct 1, 2015
#166
1.7k
views
3
answers
1
votes
what is the output of the following c code?
what is the output of the following c code?#include<stdio.h void main() { int index; for(index=1;index<=5;index++) { printf("%d",index); if(index==3) continue; } }a)1245b...
ajit
1.7k
views
ajit
asked
Oct 1, 2015
Programming in C
programming-in-c
+
–
#167
3.8k
views
3
answers
2
votes
ISRO2014-51
Which of the following is NOT represented in a subroutine's activation record frame for a stack-based programming language?Values of local variablesReturn addressHeap are...
ajit
3.8k
views
ajit
asked
Sep 20, 2015
Programming in C
isro2014
programming
activation-record
+
–
#168
17.1k
views
3
answers
2
votes
The minimum number of temporary variables needed to swap the contents of two variables?
The minimum number of temporary variables needed to swap the contents of two variables is:(a) 1 (b) 2(c) 3 (d) 0
goku
17.1k
views
goku
asked
Sep 14, 2015
Programming in C
programming
+
–
#169
764
views
3
answers
0
votes
How to evaluate the remainder when we have a negative divisor?
main( ){ int i=-4, j, num=10; j = i % -3; j = j?0: num*num; printf(“j = %d”, j); } I tried with the formula $\boxed{\displaystyle \text{Dividend} = \left(\text{Quoti...
radha gogia
764
views
radha gogia
asked
Sep 3, 2015
#170
4.2k
views
3
answers
0
votes
why is the time complexity of operations like isempty, isfull, size, delete stack takes constant time ?
According to me when we perform the above operations we have to traverse the entire list so then why does it all take constant time ?
radha gogia
4.2k
views
radha gogia
asked
Jul 22, 2015
Programming in C
data-structures
+
–
#171
3.3k
views
3
answers
2
votes
What is the output ? int x=8; x-=--x-x--; printf("%d",x);
confused_luck
3.3k
views
confused_luck
asked
Jun 2, 2015
Programming in C
programming
+
–
#172
4.2k
views
3
answers
0
votes
what is the starting address of A[49] ?
A one dimensional array A has indices 1....75.Each element is a string and takes up three memory words. The array is stored starting at location 1120 decimal. The startin...
GATE_2016
4.2k
views
GATE_2016
asked
Apr 22, 2015
Programming in C
array
programming
+
–
#173
1.4k
views
3
answers
2
votes
Find output of following c program
What is the output of the following $C$ code segment?# define product (a, b) a * b main() { int x=5, y=2; print f("%d", product{x+4, y-3}); }$10$$-9$$15$Error.
komal07
1.4k
views
komal07
asked
Apr 10, 2015
#174
9.1k
views
3
answers
44
votes
GATE CSE 2015 Set 3 | Question: 30
Consider the following two C code segments. $Y$ and $X$ are one and two dimensional arrays of size $n$ and $ n \times n$ respectively, where $2 \leq n \leq 10$. Assume th...
go_editor
9.1k
views
go_editor
asked
Feb 15, 2015
Programming in C
gatecse-2015-set3
programming-in-c
normal
array
+
–
#175
941
views
3
answers
0
votes
try to print this in one loop itself.
try to print this in one loop itself.i have already done this in two loops(one nested into another).so please try to do in one loop itself.12 43 6 94 8 12 165 ...
sumit kumar
941
views
sumit kumar
asked
Nov 10, 2014
Programming in C
programming
programming-in-c
+
–
#176
6.0k
views
3
answers
22
votes
GATE IT 2004 | Question: 60
Choose the correct option to fill the $?1$ and $?2$ so that the program prints an input string in reverse order. Assume that the input string is terminated by a new line ...
Ishrat Jahan
6.0k
views
Ishrat Jahan
asked
Nov 2, 2014
Programming in C
gateit-2004
programming
programming-in-c
normal
+
–
#177
12.5k
views
3
answers
30
votes
GATE IT 2004 | Question: 58
Consider the following C program which is supposed to compute the transpose of a given $4 \times 4$ matrix $M$. Note that, there is an $X$ in the program which indicates ...
Ishrat Jahan
12.5k
views
Ishrat Jahan
asked
Nov 2, 2014
Programming in C
gateit-2004
programming
easy
programming-in-c
array
+
–
#178
10.0k
views
3
answers
29
votes
GATE IT 2004 | Question: 15
Let $x$ be an integer which can take a value of $0$ or $1$. The statementif (x == 0) x = 1; else x = 0;is equivalent to which one of the following ?$x = 1 + x;$$x = 1 - ...
Ishrat Jahan
10.0k
views
Ishrat Jahan
asked
Nov 1, 2014
Programming in C
gateit-2004
programming
easy
identify-function
+
–
#179
7.7k
views
3
answers
15
votes
GATE IT 2007 | Question: 34, UGCNET-Dec2012-III: 52
Consider the program below in a hypothetical programming language which allows global variables and a choice of static or dynamic scoping.int i; program main() { i = 10; ...
Ishrat Jahan
7.7k
views
Ishrat Jahan
asked
Oct 29, 2014
Programming in C
gateit-2007
programming
variable-binding
easy
ugcnetcse-dec2012-paper3
+
–
#180
15.2k
views
3
answers
65
votes
GATE IT 2008 | Question: 51
Consider the C program given below. What does it print?#include <stdio.h int main () { int i, j; int a [8] = {1, 2, 3, 4, 5, 6, 7, 8}; for(i = 0; i < 3; i++) { a[i] = a[i...
Ishrat Jahan
15.2k
views
Ishrat Jahan
asked
Oct 28, 2014
Programming in C
gateit-2008
programming
programming-in-c
normal
array
+
–
Page:
« prev
1
...
4
5
6
7
8
9
10
11
12
13
14
...
206
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register