Most viewed questions in Programming and DS

0 votes
1 answer
2673
Given ‘N’ objects, which are coloured as red, white and blue. Sort theseobjects so that objects of the same colour are adjacent, with the coloursin the order red, whi...
3 votes
3 answers
2674
0 votes
2 answers
2675
1 votes
1 answer
2676
0 votes
2 answers
2677
void main() { static int x[] = {1,2,3,4,5,6,7,8}; int i; for(i=2; i<6; ++i) x[x[i]] = x[i]; for(i=0; i<8; ++i) printf("%d,",x[i]); }$1,2,3,3,5,5,7,8$$1,2,3,4,5,6,7,8$$8,7...
0 votes
1 answer
2678
The maximum number of arguments that can be passed in a single function are ??
0 votes
2 answers
2681
After executing the program, I am getting 10 as the answer.Please explain and give the postfix for the expression [ z=x++-y*b/a ].
1 votes
0 answers
2682
#include<stdio.h>main ( ){ int new ( ); new ( ); (*new) ( );}int new ( ){ printf (“Welcome”);}} prints Welcome Welcome prints Welcome results in a run-...
1 votes
1 answer
2683
1 votes
1 answer
2685
Explain the Output of the Following C Code: int main() { char s[]={'g','a','t','e','c','s'}; char r[]={'G','A','T','E','C','S'}; char *p,*q,*str1,*str2; p=&s[4]; q=&r ; s...
0 votes
3 answers
2686
Consider a complete graph of 10 vertices. The minimum no. of edge removals required to make the graph disconnected is ______
0 votes
0 answers
2688
The possible output of printf (“%d %d”, wer, wer+1); is(a) 262262 (b) 262263(c) 262265 ...
0 votes
0 answers
2689
find the vertical sum of a binary tree. For example,the tree has 5 vertical lines?
1 votes
1 answer
2690
A rooted tree with 8 nodes has its nodes [1.....8] in preorder.When the tree is traversed in postorder.....nodes visited are{3,5,4,2,7,8,6,1}.Draw a tree for it.How to s...