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 viewed questions in Programming and DS
1
votes
1
answer
4921
Array, Memory Allocation
In what cases does an uninitialized array have values = 0 and for which cases does it have values = garbage values. How to differentiate?
In what cases does an uninitialized array have values = 0 and for which cases does it have values = garbage values. How to differentiate?
Mrityudoot
281
views
Mrityudoot
asked
Feb 2
Programming in C
memory-management
programming-in-c
array
+
–
–1
votes
1
answer
4922
ME Test series
When searching for a key value 50 in a BST, nodes containing key values 10,30,40,70,90,120.150.175 are traversed in any order . The number of different orders possible in which these key values can occur in search path from the root to the value containing 50 are ________
When searching for a key value 50 in a BST, nodes containing key values 10,30,40,70,90,120.150.175 are traversed in any order . The number of different orders possible in...
Shadan Karim
281
views
Shadan Karim
asked
Dec 31, 2018
0
votes
2
answers
4923
ibps2014
the run time for traversing all the nodes of a binary search tree with n nodes and printing them in an order is 1. o (n log n) 2. o (n) 3. o(sqrt(n)) 4. o (log n)
the run time for traversing all the nodes of a binary search tree with n nodes and printing them in an order is1. o (n log n)2. o (n)3. o(sqrt(n))4. o (log n)
Kushagra1234
281
views
Kushagra1234
asked
Nov 16, 2018
2
votes
1
answer
4924
Programming
#include<stdio.h> int main() { int i, j, k; i = 5; j = ++i; i = j--; k = (i+j)++; printf("%d",k); } What will be the output of the above program? (A) 11 (B) 12 (C) Compilation error (D) None of the above
#include<stdio.h int main() { int i, j, k; i = 5; j = ++i; i = j ; k = (i+j)++; printf("%d",k); }What will be the output of the above program?(A) 11(B) 12(C) Compilation ...
Hradesh patel
281
views
Hradesh patel
asked
Aug 11, 2016
Programming in C
programming-in-c
+
–
1
votes
2
answers
4925
DRDO CSE 2022 Paper 1 | Question: 28
If the maximum height of a binary tree is $\mathrm{N},$ then how many number of nodes will there be?
If the maximum height of a binary tree is $\mathrm{N},$ then how many number of nodes will there be?
admin
280
views
admin
asked
Dec 15, 2022
DS
drdocse-2022-paper1
data-structures
binary-tree
4-marks
descriptive
+
–
0
votes
0
answers
4926
#c programming
#include <stdio.h> int cou=0; int cal(int a,int b){ int c; cou++; if(b==3) return(a*a*a); else{ c=cal(a,b/3); return(c*c*c); } } int main() { int d= cal(4,81); printf("%d",d); return 0; }
#include <stdio.h>int cou=0;int cal(int a,int b){ int c; cou++; if(b==3) return(a*a*a); else{ c=cal(a,b/3); return(c*c*c); }}int ma...
amit166
280
views
amit166
asked
Dec 28, 2018
Programming in C
programming-in-c
+
–
0
votes
0
answers
4927
C programming
Prince Sindhiya
280
views
Prince Sindhiya
asked
Mar 26, 2018
Programming in C
programming-in-c
pointers
+
–
0
votes
1
answer
4928
MadeEasy Subject Test: Programming & DS - Programming in C
how the o/p is 3 of this question explain.?
how the o/p is 3 of this question explain.?
nikkey123
280
views
nikkey123
asked
Nov 19, 2017
Programming in C
made-easy-test-series
programming-in-c
programming
+
–
0
votes
1
answer
4929
Paramater passing in C
Do C supports Call by reference parameter passing technique ?
Do C supports Call by reference parameter passing technique ?
jatin khachane 1
280
views
jatin khachane 1
asked
Jun 10, 2017
Programming in C
programming-in-c
+
–
0
votes
1
answer
4930
program
What will be the output of the following program assuming that parameter passing is call by value procedure P{a, b, c}; begin a:=b:=3; b:b+1; c: a+a end; begin main P(a+b, a, a); Print(a) end.
What will be the output of the following program assuming that parameter passing iscall by valueprocedure P{a, b, c}; begin a:=b:=3; b:b+1; c: a+a end; begin main P(a+b, ...
srestha
280
views
srestha
asked
Jan 5, 2016
0
votes
0
answers
4931
Why is the output 6723 and not 7632 ?
#include<stdio.h> int r(){ static int num=9; return num--; } int main() { for(r();r();r()) { printf("%d%d",r(),r()); }; return 0; } Why is the output 6723 and not 7632?
#include<stdio.h>int r(){ static int num=9;return num ;}int main() { for(r();r();r()) {printf("%d%d",r(),r());};return 0;}Why is the output 6723 and not 7632?
darcy5
279
views
darcy5
asked
May 27, 2022
0
votes
0
answers
4932
#heap
What is the time taken to delete min element from max heap with and without using heapify?
What is the time taken to delete min element from max heap with and without using heapify?
Amitesh Anand
279
views
Amitesh Anand
asked
Jan 29, 2019
0
votes
1
answer
4933
Doubt
Consider a stack is used to evaluate fully parenthesized arithmetic expression from left to right. Each opperand is placed on the stack and operators operate on top two elements of the stack. The minimum size of stack required to evaluate given expression is ________.
Consider a stack is used to evaluate fully parenthesized arithmetic expression from left to right. Each opperand is placed on the stack and operators operate on top two e...
Na462
279
views
Na462
asked
May 10, 2018
Programming in C
algorithms
+
–
0
votes
1
answer
4934
Programming
What is the output of the following program? int main ( ) { char *str = “Gate2015” printf (“%d”, gradeup (str)) ; return 0; } int gradeup (char *P1) { char *P2 = P1 ; while (*++P1) ; return (P1 – P2); } How P1 points to null and P2 to starting based on that they gave answer as 8
What is the output of the following program? int main ( ) { char *str = “Gate2015” printf (“%d”, gradeup (str)) ; return 0; } int gradeup (char *P1) { char *P2 = ...
Niharika 1
279
views
Niharika 1
asked
Dec 1, 2017
1
votes
0
answers
4935
General
#include<stdio.h> int main() { int i =6; for(int i=0;i<5;i++) { printf("%d",i); } } This code when run using C compiler gave exception redefinition of i .But with Cplus plus it ran fine and gave output.Why that difference??
#include<stdio.h>int main(){ int i =6; for(int i=0;i<5;i++){ printf("%d",i);}} This code when run using C compiler gave exception redefinition of i .But with Cplus plu...
Niharika 1
279
views
Niharika 1
asked
Nov 28, 2017
2
votes
0
answers
4936
C programming
How can we print these alphabets using simple c program? A BC CDEF DEFGHIJ EFGHIJKLMNO
How can we print these alphabets using simple c program? ABCCDEFDEFGHIJEFGHIJKLMNO
AIkiran01
279
views
AIkiran01
asked
Jun 27, 2017
0
votes
1
answer
4937
c Programming
what is the difference between a null pointer , a NULL macro ,the ASCII NUL Character and null string?
what is the difference between a null pointer , a NULL macro ,the ASCII NUL Character and null string?
Nitesh Choudhary
279
views
Nitesh Choudhary
asked
Jun 5, 2017
Programming in C
programming-in-c
+
–
2
votes
1
answer
4938
Test by Bikram | Data Structures | Test 2 | Question: 15
Elements $1,2,3,4,5$ are inserted in a stack in sequence. The elements are printed while popping them out. Which of the following is a wrong print sequence? $3 \ 5 \ 4 \ 2 \ 1$ $1 \ 3 \ 2 \ 4 \ 5$ $5 \ 4 \ 3 \ 2 \ 1$ $2 \ 4 \ 1 \ 5 \ 3$
Elements $1,2,3,4,5$ are inserted in a stack in sequence. The elements are printed while popping them out. Which of the following is a wrong print sequence?$3 \ 5 \ 4 \ 2...
Bikram
279
views
Bikram
asked
Nov 26, 2016
Programming in C
tbb-ds-2
+
–
0
votes
1
answer
4939
gradeup
let G be an undirected graph. Consider a depth-first traversal of G, and let T be the resulting depth-first search tree. Let u be a vertex in G and let n be the first new (unvisited) vertex visited after visiting u in the traversal. Which of the following statements is always true? A{u, ... in G then u is a leaf in T DIf {u,v} is not an edge in G then u and v must have the same parent in T
let G be an undirected graph. Consider a depth-first traversal of G, and let T be the resulting depth-first search tree. Let u be a vertex in G and let n be the first new...
Rajesh Raj
279
views
Rajesh Raj
asked
Nov 16, 2016
1
votes
1
answer
4940
GATE Overflow Test Series | Data Structures | Test 1 | Question: 4
The data structures most suitable to do an inorder and level order traversals of a binary tree respectively are Stack and Queue Queue and Stack Stack and Stack Queue and Queue
The data structures most suitable to do an inorder and level order traversals of a binary tree respectively areStack and QueueQueue and StackStack and StackQueue and Queu...
gatecse
278
views
gatecse
asked
Aug 9, 2020
DS
go2025-ds-1
stack
queue
+
–
Page:
« prev
1
...
242
243
244
245
246
247
248
249
250
251
252
...
310
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register