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 answered questions in Programming and DS
0
votes
0
answers
5141
Tree data structure
How many binary trees are possible with given preorder:- ABCD And given postorder:- cdba
How many binary trees are possible with given preorder:- ABCDAnd given postorder:- cdba
Swami patil
189
views
Swami patil
asked
Dec 4, 2017
0
votes
0
answers
5142
data structure
what is complexity 1)to convert infix to prefix 2) to convert infix to postfix 3)convert infix to prefix using stack plz someone tell?
what is complexity1)to convert infix to prefix 2) to convert infix to postfix 3)convert infix to prefix using stackplz someone tell?
aaru14
234
views
aaru14
asked
Dec 4, 2017
Programming in C
data-structures
+
–
0
votes
0
answers
5143
Timothy Williams - Programming Output
static char hello[]='hello'; printf("%s",hello); The output will be same as- puts("hello"); puts(hello); printf("%s", "hello"); puts("hello\n"); Answer is 1,2 and 3. Can anyone tell what's the problem with 4 option? It is also printing hello.
static char hello[]='hello'; printf("%s",hello);The output will be same as-puts("hello");puts(hello);printf("%s", "hello");puts("hello\n");Answer is 1,2 and 3.Can anyone ...
sushmita
1.4k
views
sushmita
asked
Dec 3, 2017
Programming in C
programming-in-c
output
+
–
2
votes
0
answers
5144
doubt
#include <stdio.h> int main(void) { static int a[10]; int x=0; a[x]=++x; printf("%d %d %d",a[0],a[1],a[2]); return 0; } my doubt here is [ ] has high precedence over ++ which in turn has precedence over =, so i think it a[x] = ++x; is evaluated in 3 ... > a* phase2: ++x -> x=1 phase3: a*=1 or a[0]=1 so finally answer should be 1 0 0, but it is giving 0 1 0 as output.
#include <stdio.h int main(void) { static int a[10]; int x=0; a[x]=++x; printf("%d %d %d",a[0],a ,a ); return 0; }my doubt here is [ ] has high precedence over ++ which i...
joshi_nitish
430
views
joshi_nitish
asked
Dec 3, 2017
Programming in C
programming-in-c
+
–
0
votes
0
answers
5145
Hashing
What is clustering effect in hashing How quadratic and pseudorandom method of hashing works What is the difference between chaining and linklist method of hashing
What is clustering effect in hashing How quadratic and pseudorandom method of hashing worksWhat is the difference between chaining and linklist method of hashing
Swami patil
147
views
Swami patil
asked
Dec 3, 2017
0
votes
0
answers
5146
madeasy test series
The minimum size that an array may require to store a binary tree with ‘n’ nodes is _______. A log$2^{log_{2}(n+1)} -1$ B 2^{n}-1 C n + 1
The minimum size that an array may require to store a binary tree with ‘n’ nodes is _______.A log$2^{log_{2}(n+1)} -1$B 2^{n}-1C n + 1
eyeamgj
413
views
eyeamgj
asked
Dec 2, 2017
0
votes
0
answers
5147
Data structure
Which of the following statement are true? 1. Computing the most frequently occurring elements in an array a(1....n) can be done in o(nlogn) time.
Which of the following statement are true?1. Computing the most frequently occurring elements in an array a(1....n) can be done in o(nlogn) time.
akankshadewangan24
249
views
akankshadewangan24
asked
Dec 2, 2017
Programming in C
data-structures
+
–
0
votes
0
answers
5148
data structtures
complexity of algorithm to interchange the nth and mth element (node) of singly link list is: a.m+n b.m if m>=n otherwise n c.m if m<=n otherwise n d.m+min(m,n) ans given c???????????how
complexity of algorithm to interchange the nth and mth element (node) of singly link list is:a.m+nb.m if m>=n otherwise nc.m if m<=n otherwise nd.m+min(m,n)ans given c?...
akankshadewangan24
834
views
akankshadewangan24
asked
Dec 2, 2017
Programming in C
data-structures
+
–
0
votes
0
answers
5149
ace test series
void fun(char **) innt main() { char *argv[]={"ab",cd","ef","gh"}; fun(argv); return 0; } voidfun(char **p) { char *t; t=(p+=sizeof(int))[-1]; pritf("%s\n",t); } output is a)cd b)gh c)ef d)ab
void fun(char )innt main(){char *argv[]={"ab",cd","ef","gh"};fun(argv);return 0;}voidfun(char p){char *t;t=(p+=sizeof(int))[-1];pritf("%s\n",t);}output isa)cdb)ghc)efd)...
eyeamgj
447
views
eyeamgj
asked
Dec 1, 2017
0
votes
0
answers
5150
C prog
What is lvalue and rvalue error in c
What is lvalue and rvalue error in c
Swami patil
202
views
Swami patil
asked
Dec 1, 2017
0
votes
0
answers
5151
self-Doudt
can null graph can be biparted graph ?
can null graph can be biparted graph ?
Nils
222
views
Nils
asked
Nov 30, 2017
0
votes
0
answers
5152
PRACTICE PAPER
CONSIDER THREE STATEMENTS WITH RESPECT TO SOME TYPE OF TREE S1:FINDING SMALLEST ELEMENTS. S2:FINDING ELEMENT x WHICH IS ALREADY AVAILABLE S3:FINDING ELEMENT x WHICH IS NOT THERE WHICH OF THE FOLLOWING IS TRUE A)S1 USING BINARY SEARCH TREE IN WORST CASE WILL TAKE O(N) WHILE USING ... D)S1 USING AVL TREE IN BEST CASE WILL TAKE O(1) AND S2 USING AVL TREE IN BEST CASE WILL TAKE O(LOG N)
CONSIDER THREE STATEMENTS WITH RESPECT TO SOME TYPE OF TREES1:FINDING SMALLEST ELEMENTS.S2:FINDING ELEMENT x WHICH IS ALREADY AVAILABLE S3:FINDING ELEMENT x WHICH IS NOT ...
eyeamgj
253
views
eyeamgj
asked
Nov 29, 2017
1
votes
0
answers
5153
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
282
views
Niharika 1
asked
Nov 28, 2017
4
votes
0
answers
5154
Arrays
main ( ) { static char [3] [4] = {“abcd”, “mnop”, “fghi”}; putchar (**a); }
main ( ){static char [3] [4] = {“abcd”, “mnop”, “fghi”};putchar ( a);}
saipriyab
643
views
saipriyab
asked
Nov 28, 2017
0
votes
0
answers
5155
MadeEasy Workbook: Programming & DS - Programming In C
how it will be solve plz someone help?
how it will be solve plz someone help?
aaru14
371
views
aaru14
asked
Nov 28, 2017
Programming in C
made-easy-booklet
programming
programming-in-c
+
–
0
votes
0
answers
5156
trees
The number of possible ordered trees with 3 nodes A, B, C is:
The number of possible ordered trees with 3 nodes A, B, C is:
saipriyab
144
views
saipriyab
asked
Nov 28, 2017
1
votes
0
answers
5157
linked list
Let P be a single linked list.Let Q be a pointer to an intermediate node 'X' in the list.What is the worst case time complexity of best known algorithm to delete the node 'X ' from the list
Let P be a single linked list.Let Q be a pointer to an intermediate node 'X' in the list.What is the worst case time complexity of best known algorithm to delete the node...
saipriyab
1.4k
views
saipriyab
asked
Nov 25, 2017
Programming in C
linked-list
algorithms
data-structures
+
–
1
votes
0
answers
5158
arrays
In a compact single dimensional array represented for lower triangular matrices (i.e, all the elements above the diagonal are zero )of size n*n non zero elements(ie., elements of the lower triangle )of each row are stored one after another,starting from the first row the index of (i,j)th element of the lower triangular matrix in the new representation is
In a compact single dimensional array represented for lower triangular matrices (i.e, all the elements above the diagonal are zero )of size n*n non zero elements(ie., ele...
saipriyab
406
views
saipriyab
asked
Nov 25, 2017
0
votes
0
answers
5159
Recursion
T(n) =$\log$n + T($\sqrt{n}$) How to solve this?
T(n) =$\log$n + T($\sqrt{n}$)How to solve this?
kirti_k
232
views
kirti_k
asked
Nov 21, 2017
Programming in C
recurrence-relation
+
–
1
votes
0
answers
5160
c program
#include <stdio.h> main() { int a,b,c; int count = 1; for (b=c=10;a="- FIGURE?, UMKC,XYZHello Folks,\ TFy!QJu ROo TNn(ROo)SLq SLq ULo+\ UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^\ NBELPeHBFHT}TnALVlBLOFAkHFOuFETp\ HCStHAUFAgcEAelclcn^r^r\\tZvYxXy\ T|S~Pn SPm SOn TNn ULo0ULo#ULo- ... > 64 ; ) putchar ( ++c=='Z' ? c = c/ 9:33^b&1); return 0; } can any one explain this code
#include <stdio.h main() { int a,b,c; int count = 1; for (b=c=10;a="- FIGURE?, UMKC,XYZHello Folks,\ TFy!QJu ROo TNn(ROo)SLq SLq ULo+\ UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^\ N...
saipriyab
384
views
saipriyab
asked
Nov 21, 2017
Programming in C
bad-question
non-gate
+
–
Page:
« prev
1
...
253
254
255
256
257
258
259
260
261
262
263
...
310
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register