Most answered questions in Programming and DS

1 votes
1 answer
3481
The order in which operands are evaluated in an expression is predictable if the operator isa) * b) + c) % d) &&
0 votes
1 answer
3482
0 votes
1 answer
3483
0 votes
1 answer
3484
If pointer to leaf node of max heap given, what is the time complexity to find smallest element?
1 votes
1 answer
3486
What is the result of expression 5.45 +"3.2"?(a) The double value 8.6 (b) The string ""8.6"(c) The long value 8. (d) The String "5.453.2"
0 votes
1 answer
3487
0 votes
1 answer
3488
Predict the output of following code segment: #include<iostream.h Void main ( ) { int x { } = {1,2,3,4,5}; int *p, q,*t; p=x; cout<<*p; t=x+2; q=&t; cout<<*++p << q << q ...
0 votes
1 answer
3491
3 votes
1 answer
3492
#include <stdio.h void A() { printf("A");}; void B() { printf("B");}; void C() { printf("C");}; void D() { printf("D");}; int main() { void (*P[4])() = {A,B,C,D}; for(int...
2 votes
1 answer
3493
4 votes
1 answer
3494
main () { if( i) { main (); printf("%d", i); } } 5 4 3 2 1 1 2 3 4 5 0 0 0 0 0 Compiler error
7 votes
1 answer
3496
Consider the recursive function $\mathsf{mc91}$.int mc91(int n) { print n if (n 100) { return n-10; } else { return mc91(mc91(n+11)); } }Let $\mathsf{Out}=\{n : \text{ t...
0 votes
1 answer
3498
How is the"do" function working here? What will be the output?
1 votes
1 answer
3499
int main() { int a, b; /* Some code which initializes "a" here ... */ if (a < 0) { a = -a; } b = sqrt (a); }Above code will always work for calculating the square root of...
3 votes
1 answer
3500
Consider an array ‘A’ with 2m elements. The elements in odd position are sorted in non-increasing order that is A >= A[3] >= A[5]......A[2m-1] The elements in even p...