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
Recent questions in Programming and DS
8
votes
3
answers
4741
ISRO2007-15
Consider the following pseudo-code x:=1; i:=1; while (x <= 1000) begin x:=2^x; i:=i+1; end; What is the value of i at the end of the pseudo-code? 4 5 6 7
Consider the following pseudo-codex:=1; i:=1; while (x <= 1000) begin x:=2^x; i:=i+1; end;What is the value of i at the end of the pseudo-code?4567
go_editor
15.8k
views
go_editor
asked
Jun 10, 2016
Programming in C
isro2007
loop-invariants
+
–
0
votes
2
answers
4742
Tree
If a tree is having only two nodes ( May be A and B). and its preorder and postorder is given, then is it possible to construct unique tree?
If a tree is having only two nodes ( May be A and B). and its preorder and postorder is given, then is it possible to construct unique tree?
shivani2010
474
views
shivani2010
asked
Jun 9, 2016
4
votes
1
answer
4743
UGC NET CSE | September 2013 | Part 2 | Question: 20
Consider the following statements: A graph in which there is a unique path between every pair of vertices is a tree. A connected graph with e=v-1 is a tree A connected graph with e=v-1 that has no circuit is a tree Which one of the above statements is/are true? I and III II and III I and II All of the above
Consider the following statements:A graph in which there is a unique path between every pair of vertices is a tree.A connected graph with e=v-1 is a treeA connected graph...
shivani2010
3.5k
views
shivani2010
asked
Jun 9, 2016
DS
graph-connectivity
ugcnetsep2013ii
+
–
1
votes
1
answer
4744
UGC NET CSE | September 2013 | Part 2 | Question: 11
The min. number of nodes in a binary tree of depth d (root at level 0) is $(2^d + 1)$ $(2^{(d+1)} - 1)$ $d$ $d + 1$
The min. number of nodes in a binary tree of depth d (root at level 0) is$(2^d + 1)$$(2^{(d+1)} - 1)$$d$$d + 1$
shivani2010
4.1k
views
shivani2010
asked
Jun 9, 2016
DS
binary-tree
data-structures
ugcnetsep2013ii
+
–
4
votes
1
answer
4745
Splay Tree
The amortized time complexity to perform ______ operation(s) in Splay trees is $O(\log n)$. Search Search and Insert Search and Delete Search, insert and delete
The amortized time complexity to perform ______ operation(s) in Splay trees is $O(\log n)$.SearchSearch and Insert Search and DeleteSearch, insert and delete
shivani2010
1.1k
views
shivani2010
asked
Jun 9, 2016
DS
tree
+
–
3
votes
2
answers
4746
When a function is recursively called, all automatic variables
When a function is recursively called, all automatic variables : are initialized during each execution of the function are retained from the last execution are maintained in a stack are ignored
When a function is recursively called, all automatic variables :are initialized during each execution of the functionare retained from the last executionare maintained in...
Sanjay Sharma
12.7k
views
Sanjay Sharma
asked
Jun 9, 2016
Programming in C
runtime-environment
+
–
0
votes
1
answer
4747
physical data structure
Which one of the following is a physical data structure ? Array Linked lists Stacks Tables
Which one of the following is a physical data structure ?ArrayLinked listsStacksTables
Sanjay Sharma
3.6k
views
Sanjay Sharma
asked
Jun 8, 2016
1
votes
1
answer
4748
command line argument
What would be the output of the following program, if run from the command line as “myprog 1 2 3” ? main (int argc, char * argv[ ]) { int i ; i = argv[1] + argv[2] + argv[3] ; printf (“% d”, i) ; } 123 6 Error “123”
What would be the output of the following program, if run from the command line as “myprog 1 2 3” ?main (int argc, char * argv[ ]) { int i ; i = argv + argv + argv[...
Sanjay Sharma
1.9k
views
Sanjay Sharma
asked
Jun 8, 2016
0
votes
4
answers
4749
If a= 10 then what will be the value of b in a C language code
If a= 10 then what will be the value of b in a C language code . If b= a++ + a++ + a++; . 30. 23. 33. Undefined behaviour
If a= 10 then what will be the value of b in a C language code.If b= a++ + a++ + a++;.30.23.33.Undefined behaviour
Sanjay Sharma
1.9k
views
Sanjay Sharma
asked
Jun 7, 2016
Programming in C
programming-in-c
undefined-behaviour
+
–
1
votes
1
answer
4750
In fib(6) after how many function calls 7th addition will be taken place?
shwetakhandelwal
726
views
shwetakhandelwal
asked
Jun 7, 2016
0
votes
1
answer
4751
C programming
void main( ){ int i='4'; switch(4){ case 4: printf(“4”); break; case -4: printf(“-4”); break; case default : printf(“D”); } } 1) 4 2) -4 3) D 4) Error
void main( ){ int i='4'; switch(4){ case 4: printf(“4”); break; case -4: printf(“-4”); break; case default : printf(“D”); } }1) 4 ...
Desert_Warrior
400
views
Desert_Warrior
asked
Jun 7, 2016
Programming in C
programming-in-c
output
+
–
0
votes
2
answers
4752
object code
Object code is the output of ______. Operating System Compiler or Assembler only Assembler only Compiler
Object code is the output of ______.Operating SystemCompiler or Assembleronly Assembleronly Compiler
Sanjay Sharma
3.4k
views
Sanjay Sharma
asked
Jun 6, 2016
2
votes
2
answers
4753
output of c prog
#include<stdio.h> int main(){ int a; if(a=printf("hello")) printf("gatecse%d",a); }
#include<stdio.h int main(){ int a; if(a=printf("hello")) printf("gatecse%d",a); }
kvkumar
463
views
kvkumar
asked
Jun 6, 2016
Programming in C
programming-in-c
non-gate
+
–
0
votes
1
answer
4754
C Program Output
shivanisrivarshini
409
views
shivanisrivarshini
asked
Jun 5, 2016
Programming in C
output
programming-in-c
+
–
0
votes
2
answers
4755
C Programming pointer
Differentiate and explain two programs #include <stdio.h> int main() { int i = 10; int *const p = &i; fd(&p); printf("%d\n", *p); } void fd(int **p) { int j = 11; *p = &j; printf("%d\n", *p); } #include <stdio.h> int ... ; printf("%d\n", *p); } void fd(int **p) { int j = 11; *p = &j; printf("%d\n", **p); }
Differentiate and explain two programs#include <stdio.h int main() { int i = 10; int *const p = &i; fd(&p); printf("%d\n", *p); } void fd(int p) { int j = 11; *p = &j; p...
srestha
867
views
srestha
asked
Jun 5, 2016
0
votes
1
answer
4756
UGC NET CSE | December 2015 | Part 3 | Question: 43
A horn clause is A clause in which no variables occur in the expression A clause that has at least one negative literal A disjunction of a number of literals A clause that has atmost one positive literal
A horn clause isA clause in which no variables occur in the expressionA clause that has at least one negative literalA disjunction of a number of literalsA clause that ha...
Deepak jain
2.0k
views
Deepak jain
asked
Jun 4, 2016
Programming and DS
programming-in-c
ugcnetcse-dec2015-paper3
+
–
1
votes
1
answer
4757
What is the use of malloc(), calloc(), free() & realloc() ?
Deepak jain
1.5k
views
Deepak jain
asked
Jun 4, 2016
Programming in C
programming-in-c
+
–
0
votes
1
answer
4758
Output of the program ?
void main(void) { struct s_type { int i; int j; } s; int i; i=10; s.i=100; s.j=101; printf("%d %d %d", i, s.i, s.j); }
void main(void){struct s_type {int i;int j;} s;int i;i=10;s.i=100;s.j=101;printf("%d %d %d", i, s.i, s.j);}
shekhar chauhan
330
views
shekhar chauhan
asked
Jun 4, 2016
Programming in C
programming-in-c
output
structure
+
–
0
votes
1
answer
4759
Output of Program
main() { char *c , ch[10]; int *i , j[10]; float *f , g[10]; int x; c = ch; i = j; f = g; for ( x=0 ; x<=10 ; x++ ) printf("%p %p %p\n" , c+x , i+x , f+x); }
main(){char *c , ch[10];int *i , j[10];float *f , g[10];int x;c = ch;i = j;f = g;for ( x=0 ; x<=10 ; x++ )printf("%p %p %p\n" , c+x , i+x , f+x);}
shekhar chauhan
337
views
shekhar chauhan
asked
Jun 4, 2016
Programming in C
programming-in-c
output
pointers
+
–
0
votes
1
answer
4760
Output of Program ?
#include <stdio.h> int main() { int i = 10; int *const p = &i; fd(&p); printf("%d\n", *p); } void fd(int **p) { int j = 11; *p = &j; printf("%d\n", **p); }
#include <stdio.h int main() { int i = 10; int *const p = &i; fd(&p); printf("%d\n", *p); } void fd(int p) { int j = 11; *p = &j; printf("%d\n", p); }
shekhar chauhan
540
views
shekhar chauhan
asked
Jun 4, 2016
Programming in C
programming-in-c
pointers
+
–
Page:
« prev
1
...
233
234
235
236
237
238
239
240
241
242
243
...
309
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register