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
Highest voted questions in Programming and DS
1
votes
1
answer
2481
output
main() { int a=2; if(a==2) { a=~a+2<<1; printf("%d",a); } else { break; } a)-3 b)-2 c)1 d)compile error
main(){int a=2;if(a==2){a=~a+2<<1;printf("%d",a);}else{break;}a)-3b)-2c)1d)compile error
A_i_$_h
277
views
A_i_$_h
asked
Oct 12, 2017
1
votes
1
answer
2482
computer programing book arihant
i=0; j=--i ; printf( i++ + --i + i-- + j-- + --i + i); the output??
i=0;j= i ;printf( i++ + i + i + j + i + i);the output??
aaru14
253
views
aaru14
asked
Oct 11, 2017
Programming in C
programming-in-c
+
–
1
votes
0
answers
2483
#doubt
Q1. How many Binary Tree possible with n nodes ? Q2. How many Ordered Binary Tree possible with n nodes ? Q3. How may BinarySearch Tree possible with n nodes ?
Q1. How many Binary Tree possible with n nodes ?Q2. How many Ordered Binary Tree possible with n nodes ?Q3. How may BinarySearch Tree possible with n nodes ?
Angkit
262
views
Angkit
asked
Oct 11, 2017
1
votes
0
answers
2484
Gate 2004
Ipsita Priyadarsini
204
views
Ipsita Priyadarsini
asked
Oct 8, 2017
1
votes
1
answer
2485
Complexity
What is the time complexity of adding an element at the front of a circular linked list ? O(n) or theta(n) ? How to find whether it is O or theta ?
What is the time complexity of adding an element at the front of a circular linked list ?O(n) or theta(n) ? How to find whether it is O or theta ?
Purvi Agrawal
252
views
Purvi Agrawal
asked
Oct 6, 2017
1
votes
2
answers
2486
Programming and DS ::- BST deletion
What is the time complexity to delete the root node in right skew tree? I knew the three cases of BST deletion:- 0 child,one child,two child. But how can we handle this particular question
What is the time complexity to delete the root node in right skew tree?I knew the three cases of BST deletion:- 0 child,one child,two child.But how can we handle this par...
rahul sharma 5
860
views
rahul sharma 5
asked
Oct 6, 2017
Programming in C
data-structures
tree
binary-search-tree
+
–
1
votes
0
answers
2487
time complexity
You are given a Linked list L, and another linked list, P, containing integers, sorted in ascending order. The operation print - lots (L,P) will print the elements in L that are in position specified by P. for instance, if P = 1, 3, 4, 6, the first, third, forth and sixth elements in L ... Element) Ppos = next (Ppos, P); } Lpos = Next (Lpos, L); } } A)O(L) B)O(L+P) C)O(P) D)none
You are given a Linked list L, and another linked list, P, containing integers, sorted in ascending order. The operation print – lots (L,P) will print the elements in L...
Sambit Kumar
830
views
Sambit Kumar
asked
Oct 6, 2017
1
votes
1
answer
2488
Programming
#include<stdio.h> int main() { Float x=0.5; if(x==0.5) Printf("if"); else if(x==0.5f) Printf("else if"); } Explain the code line by line .
#include<stdio.h>int main(){ Float x=0.5;if(x==0.5)Printf("if");else if(x==0.5f)Printf("else if");}Explain the code line by line .
S .shubham
1.2k
views
S .shubham
asked
Oct 5, 2017
1
votes
1
answer
2489
Programming in c
#include<stdio.h> int main() { Float x=0.1; Printf("%d%d%d",sizeof(x),sizeof(0.1),sizeof(0.1f));
#include<stdio.h>int main(){Float x=0.1;Printf("%d%d%d",sizeof(x),sizeof(0.1),sizeof(0.1f));
S .shubham
515
views
S .shubham
asked
Oct 5, 2017
1
votes
0
answers
2490
Trees
No. Of possible ordered trees with 3 nodes A,B,C is: a.16 b.12 c.6 d.10
No. Of possible ordered trees with 3 nodes A,B,C is:a.16 b.12c.6d.10
Priyanka Agarwal
258
views
Priyanka Agarwal
asked
Oct 5, 2017
1
votes
1
answer
2491
GATE | GATE MOCK 2017
Consider an array consisting of –ve and +ve numbers. What would be the worst time comparisons an algorithm can take in order to segregate the numbers having same sign altogether i.e all +ve on one side and then all -ve on the other ? (A) N-1 (B) N (C) N+1 (D) (N*(N-1))/2
Consider an array consisting of –ve and +ve numbers. What would be the worst time comparisons an algorithm can take in order to segregate the numbers having same sign a...
mohit kumar 5
3.2k
views
mohit kumar 5
asked
Oct 4, 2017
1
votes
0
answers
2492
Madeeasy test series
int fun (unsigned int n) { int c=0; while(n!=0) { if(n&01) c++; n>>=1; } return c; } output of the code?? Can someone provide any link on how to solve this kind of question?
int fun (unsigned int n){int c=0;while(n!=0){if(n&01) c++;n>>=1;}return c;}output of the code??Can someone provide any link on how to solve this kind of question?
Aiman
537
views
Aiman
asked
Oct 3, 2017
1
votes
1
answer
2493
data structure
what is the average number of probes in linear probing if load factor is 0.1
what is the average number of probes in linear probing if load factor is 0.1
vikash tyagi
379
views
vikash tyagi
asked
Oct 2, 2017
1
votes
1
answer
2494
data structure
what is compressed adjacency list
what is compressed adjacency list
vikash tyagi
203
views
vikash tyagi
asked
Oct 2, 2017
1
votes
0
answers
2495
Dennis Ritchie book
Ques) Write a program to copy its input to its output, replacing each tab by \t , each backspace by \b , and each backslash by \\ . This makes tabs and backspaces visible in an unambiguous way. Ans.) while ((c = getchar()) != EOF) { // Detect/translate ... replaced with '\\' . am i geting it right or wrong? and also i didnt get the third case when c='\\' .
Ques) Write a program to copy its input to its output, replacing each tab by \t , each backspace by \b , and each backslash by \\ . This makes tabs and backspaces visible...
shaurya vardhan
332
views
shaurya vardhan
asked
Oct 2, 2017
1
votes
1
answer
2496
Dennis Ritchie book
Verify that the expression getchar() !=EOF is 0 or 1 . here , we can take input of any character and print its Getchar value , is that what we have to do? since at the machine level every charater will be stored at a stream of 0's and 1's .. and also , can we print EOF value also?
Verify that the expression getchar() !=EOF is 0 or 1 . here , we can take input of any character and print its Getchar value , is that what we have to do?since at the ma...
shaurya vardhan
433
views
shaurya vardhan
asked
Oct 2, 2017
1
votes
1
answer
2497
m array tree
A 3-ary tree is a tree in Which every internal node has exactly three children. Now if the tree has n internal nodes then what will be the number of leaves________??
A 3-ary tree is a tree in Which every internal node has exactly three children. Now if the tree has n internal nodes then what will be the number of leaves________??
Hira Thakur
1.1k
views
Hira Thakur
asked
Oct 1, 2017
1
votes
0
answers
2498
queue
A queue is implemented using two stack A and B. Consider the following code void enqueue(int value) { While (!B.is Empty()) A.push(B.Pop()); A. push (value); } int dequeue () { While (!A.is Empty()) {X} return B.Pop(); } if enqueue is implemented using two stacks A & B With ... )); B) B.Push(A.Pop()); C) A.Pop(B. Push ()); D) B.Pop(A. Push ()); what is difference between option b,d???
A queue is implemented using two stack A and B. Consider the following code void enqueue(int value){While (!B.is Empty())A.push(B.Pop());A. push (value);}int dequeue (){W...
Hira Thakur
753
views
Hira Thakur
asked
Oct 1, 2017
DS
queue
+
–
1
votes
2
answers
2499
Depth first Search
What should be the answer?? Key is given as opttion B. . !! I was getting D) None
What should be the answer?? Key is given as opttion B. . !! I was getting D) None
atul_21
1.5k
views
atul_21
asked
Sep 29, 2017
1
votes
1
answer
2500
Recursive foreign key
Explain recursive foreign key with suitable example..
Explain recursive foreign key with suitable example..
rishu_darkshadow
5.3k
views
rishu_darkshadow
asked
Sep 28, 2017
Programming in C
databases
referential-integrity
+
–
Page:
« prev
1
...
120
121
122
123
124
125
126
127
128
129
130
...
310
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register