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
Recent questions in Programming and DS
1
votes
1
answer
2461
#self doubt
What will be the output of following program:- Size of int is 4 bytes #incude<stdio.h> int main() { int a; for(a=1;a<=2147483647;a++) printf("%d\n",a); return 0; } a) will it print till its limit 2147483647 b) it will go to indefinate loop c) compile time error
What will be the output of following program:-Size of int is 4 bytes#incude<stdio.h>int main(){ int a; for(a=1;a<=2147483647;a++) printf("%d\n",a); r...
Sahil1994
600
views
Sahil1994
asked
Dec 11, 2017
Programming in C
programming-in-c
loop
+
–
0
votes
0
answers
2462
C-programming
#include<stdio.h> int main() { int i = 4, ans; ans = ++i+ ++i + ++i; printf("%d\n", ans); return 0; } What is the output of this program ?
#include<stdio.h>int main(){ int i = 4, ans; ans = ++i+ ++i + ++i; printf("%d\n", ans); return 0;}What is the output of this program ?
Abhisek Saha
527
views
Abhisek Saha
asked
Dec 11, 2017
Programming in C
programming
programming-in-c
+
–
0
votes
1
answer
2463
OUTPUT OF PROGRAM
set2018
370
views
set2018
asked
Dec 11, 2017
Programming in C
programming-in-c
+
–
1
votes
1
answer
2464
Programming Output question
thepeeyoosh
458
views
thepeeyoosh
asked
Dec 11, 2017
1
votes
1
answer
2465
ace test
The number of ways we can insert 11, 12, 13, 14, 15, 16, 17 in empty binary search tree such that resulting tree has the height of 6 = ___________ [height of a tree with single node is 0.]
The number of ways we can insert 11, 12, 13, 14, 15, 16, 17 in empty binary search tree such that resulting tree has the height of 6 = ___________ [height of a tree with ...
Mr_22B
408
views
Mr_22B
asked
Dec 10, 2017
Programming in C
binary-search-tree
combinatory
+
–
0
votes
2
answers
2466
Ace Test Series: Programming & DS - Linked Lists
What is the time complexity to insert a new Node in a singly circular linked list at Starting ? (Number of nodes in list = N) A. O(1) B. O(N)
What is the time complexity to insert a new Node in a singly circular linked list at Starting ? (Number of nodes in list = N)A. O(1)B. O(N)
Mr_22B
2.4k
views
Mr_22B
asked
Dec 10, 2017
Programming in C
ace-test-series
linked-list
data-structures
+
–
0
votes
0
answers
2467
Data structure
Consider an implementation of towers of hanoi where there are 25 discs(numbered from 0 to 24) and three pegs(source, auxiliary, destination). We have to move all 25 discs from source peg to destination peg using auxiliary peg only. What is the number of ... number 0) respectively to complete the task in least possible time ? 16777216 and 1 1 and16777216 16777215 and 1 1 and 16777215
Consider an implementation of towers of hanoi where there are 25 discs(numbered from 0 to 24) and three pegs(source, auxiliary, destination). We have to move all 25 discs...
heena singh
336
views
heena singh
asked
Dec 10, 2017
0
votes
4
answers
2468
MadeEasy Test Series 2018: Programming & DS - Arrays
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 ________. (Assume the first element is stored at A[1][1][1] and each element take 1 memory location)
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 ________....
rohit vishkarma
1.0k
views
rohit vishkarma
asked
Dec 10, 2017
Programming in C
made-easy-test-series
3-dimensional-array
array
data-structures
+
–
4
votes
2
answers
2469
TIFR CSE 2018 | Part B | Question: 6
Consider the following implementation of a binary tree data strucrure. The operator $+$ denotes list-concatenation. That is, $[a,b,c]+[d,e]=[a,b,c,d,e].$ struct TreeNode: int value TreeNode leftChild TreeNode rightChild function preOrder(T): if T == null: ... $\text{Cannot be uniquely determined from given information.}$
Consider the following implementation of a binary tree data strucrure. The operator $+$ denotes list-concatenation.That is, $[a,b,c]+[d,e]=[a,b,c,d,e].$struct TreeNode: i...
Arjun
1.4k
views
Arjun
asked
Dec 10, 2017
DS
tifr2018
data-structures
binary-tree
+
–
16
votes
5
answers
2470
TIFR CSE 2018 | Part A | Question: 7
Consider the following function definition. void greet(int n) { if(n>0) { printf("hello"); greet(n-1); } printf("world"); } If you run $\textsf{greet(n)}$ ... "helloworld" $\textsf{n+1}$ times "helloworld" $\textsf{n}$ times "helloworld", followed by "world"
Consider the following function definition. void greet(int n) { if(n>0) { printf("hello"); greet(n-1); } printf("world"); }If you run $\textsf{greet(n)}$ for some non-neg...
Arjun
2.9k
views
Arjun
asked
Dec 10, 2017
Programming in C
tifr2018
programming
programming-in-c
recursion
+
–
6
votes
3
answers
2471
MadeEasy Test Series: Programming & DS - Graphs
Consider the following graph: The minimum size of queue required when performing BFS on above graph is ________. (Size of queue is represented by maximum number of element at any time).
Consider the following graph:The minimum size of queue required when performing BFS on above graph is ________.(Size of queue is represented by maximum number of element ...
rahul sharma 5
3.9k
views
rahul sharma 5
asked
Dec 9, 2017
Programming in C
made-easy-test-series
data-structures
graph-theory
+
–
0
votes
2
answers
2472
MadeEasy Test Series: Programming & DS - Graphs
In DFS traversal every vertex of the graph is visited exactly once. True / False?
In DFS traversal every vertex of the graph is visited exactly once. True / False?
rahul sharma 5
884
views
rahul sharma 5
asked
Dec 9, 2017
Programming in C
made-easy-test-series
data-structures
graph-theory
+
–
0
votes
2
answers
2473
Output
Shivam Chauhan
572
views
Shivam Chauhan
asked
Dec 9, 2017
Programming in C
programming-in-c
output
+
–
0
votes
0
answers
2474
Output
Shivam Chauhan
423
views
Shivam Chauhan
asked
Dec 9, 2017
Programming in C
programming
programming-in-c
+
–
1
votes
1
answer
2475
Linked list doubt previous year question
The following C function takes a single-linked list of integers as a parameter and rearranges the elements of the list. The function is called with the list containing the integers 1, 2, 3, 4, 5, 6, 7 in the given order. What will be the contents of the list after ... ;value = temp; p = q ->next; q = p? p ->next : 0; } } What is meant by line 1?
The following C function takes a single-linked list of integers as a parameter and rearranges the elements of the list. The function is called with the list containing th...
hem chandra joshi
811
views
hem chandra joshi
asked
Dec 9, 2017
Programming in C
linked-list
+
–
0
votes
1
answer
2476
practice_question
akash.dinkar12
536
views
akash.dinkar12
asked
Dec 9, 2017
2
votes
1
answer
2477
Min #Stack operations
Let's consider we have a stack with three operations defined on it:: Push,Pop, Peek We have to print "ABCACBA" using the above operations. Give the min no of operations for doing it and also specify the operations in order.
Let's consider we have a stack with three operations defined on it:: Push,Pop, PeekWe have to print "ABCACBA" using the above operations.Give the min no of operations for...
Tuhin Dutta
620
views
Tuhin Dutta
asked
Dec 9, 2017
Programming in C
data-structures
stack
+
–
0
votes
0
answers
2478
solve : reflexive relation
R = { (x,y) ∈ z X z : x-y is even integer } is this reflexive how to prove and what this set is representing , z= set of integers
R = { (x,y) ∈ z X z : x-y is even integer } is this reflexive how to prove and what this set is representing , z= set of integers
sumit goyal 1
406
views
sumit goyal 1
asked
Dec 9, 2017
0
votes
2
answers
2479
MadeEasy Test Series: Programming & DS - Recursion
I am getting answer 13 but answer given is 17 !
I am getting answer 13 but answer given is 17 !
Prakhar Shukla 1
548
views
Prakhar Shukla 1
asked
Dec 8, 2017
Programming in C
made-easy-test-series
data-structures
programming-in-c
recursion
+
–
0
votes
0
answers
2480
Pointer doubt
a and &a are the same thing where a is array name? I am unable to understand diff between (a+1) and (&a+1) when assigned to a pointer #include <stdio.h> int main() { int a[5] = {1,2,3,4,5}; int *ptr = (int*)(&a+1); printf("%d %d", *(a+1), *(ptr-1)); return 0; }
a and &a are the same thing where a is array name? I am unable to understand diff between (a+1) and (&a+1) when assigned to a pointer #include <stdio.h>int main(){ in...
Kiran Karwa
361
views
Kiran Karwa
asked
Dec 8, 2017
Page:
« prev
1
...
119
120
121
122
123
124
125
126
127
128
129
...
310
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register