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
2
votes
1
answer
2541
Operators precedence
The output of the following program main ( ) { int a = 1, b = 2, c = 3; printf (“%d”, a+ = (a+ = 3, 5, a)); }
The output of the following programmain ( ){int a = 1, b = 2, c = 3;printf (“%d”, a+ = (a+ = 3, 5, a));}
saipriyab
4.7k
views
saipriyab
asked
Nov 28, 2017
4
votes
0
answers
2542
Arrays
main ( ) { static char [3] [4] = {“abcd”, “mnop”, “fghi”}; putchar (**a); }
main ( ){static char [3] [4] = {“abcd”, “mnop”, “fghi”};putchar ( a);}
saipriyab
644
views
saipriyab
asked
Nov 28, 2017
0
votes
0
answers
2543
MadeEasy Workbook: Programming & DS - Programming In C
how it will be solve plz someone help?
how it will be solve plz someone help?
aaru14
377
views
aaru14
asked
Nov 28, 2017
Programming in C
made-easy-booklet
programming
programming-in-c
+
–
1
votes
1
answer
2544
pointers
#include void fun(int *p) { int q = 10; p = &q; } int main() { int r = 20; int *p = &r; fun(p); printf("%d", *p); return 0; }
#includevoid fun(int *p){int q = 10; p = &q;}int main(){int r = 20;int *p = &r;fun(p);printf("%d", *p);return 0;}
saipriyab
362
views
saipriyab
asked
Nov 28, 2017
0
votes
0
answers
2545
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
150
views
saipriyab
asked
Nov 28, 2017
0
votes
1
answer
2546
Programming
Explain with example call by name parameter passing
Explain with example call by name parameter passing
Mk Utkarsh
277
views
Mk Utkarsh
asked
Nov 27, 2017
Programming in C
programming-in-c
programming
+
–
0
votes
2
answers
2547
C program
The number of possible m, such that m&0x3F equals 0x23?
The number of possible m, such that m&0x3F equals 0x23?
Rakesh4889
1.9k
views
Rakesh4889
asked
Nov 27, 2017
0
votes
2
answers
2548
internet
consider the following declarations 1.int a[5]={1,2,3,4,5}; 2.int *p=(int*) malloc(sizeof(int)*5); which is true a.statement 1 take less tym than statement 2 for execution. b.statement 2 takes more tym than 1 for execution. c.both takes same tyme. d.cannot say about execution time.
consider the following declarations1.int a[5]={1,2,3,4,5};2.int *p=(int*) malloc(sizeof(int)*5);which is truea.statement 1 take less tym than statement 2 for execution.b....
eyeamgj
295
views
eyeamgj
asked
Nov 27, 2017
0
votes
1
answer
2549
height of a tree
For the height of the tree for gate what should we consider the number of edges from the root the leaf or number of levels.????
For the height of the tree for gate what should we consider the number of edges from the root the leaf or number of levels.????
saipriyab
465
views
saipriyab
asked
Nov 27, 2017
DS
binary-tree
data-structures
descriptive
+
–
0
votes
1
answer
2550
output of the program
main( ) { double x, d = 5.0; int y ; x = d * (x = 2.5/d); printf(“x=%lf\n”,x); x = d*(y=(int)2.5+1.5); printf("x=%lf y=%d\n",x,y); } What is output of above program?
main( ){double x, d = 5.0;int y ;x = d * (x = 2.5/d);printf(“x=%lf\n”,x);x = d*(y=(int)2.5+1.5);printf("x=%lf y=%d\n",x,y);}What is output of above program?
Parshu gate
661
views
Parshu gate
asked
Nov 27, 2017
Programming in C
programming-in-c
output
programming
+
–
0
votes
1
answer
2551
Output of program
What is the output of following program? int i ; main ( ) { int j; for (; ;) { if (j = function (i)) printf (“j = %d \n”, j) else break; } } function (x) { int x ; static int v = 2; v - - ; return (v – x); } j = 1 j = - 1 j = 2
What is the output of following program?int i ;main ( ){int j;for (; ;){if (j = function (i))printf (“j = %d \n”, j)elsebreak;}}function (x){int x ;static int v = 2;v...
Parshu gate
608
views
Parshu gate
asked
Nov 27, 2017
Programming in C
programming-in-c
output
programming
+
–
4
votes
4
answers
2552
Number of binary search trees
How many different binary search trees can be constructed using six distinct keys? 256 128 132 264
How many different binary search trees can be constructed using six distinct keys? 256 128 132 264
Parshu gate
7.0k
views
Parshu gate
asked
Nov 27, 2017
DS
binary-tree
binary-search
binary-search-tree
+
–
0
votes
1
answer
2553
MadeEasy Subject Test: Programming & DS - Hashing
charul
528
views
charul
asked
Nov 27, 2017
DS
made-easy-test-series
data-structures
hashing
+
–
1
votes
1
answer
2554
linked lists and bit vectors
Consider the following statements about free space management I) Bit vectors are inefficient unless the entire vector is kept in main memory. II) Linked list approach requires less I/O time. III) Linked list approach is more efficient than bit vectors in terms of storage space. Which of the following statements is/are TRUE:?
Consider the following statements about free space managementI) Bit vectors are inefficient unless the entire vector is kept in main memory.II) Linked list approach requi...
Parshu gate
950
views
Parshu gate
asked
Nov 26, 2017
DS
linked-list
data-structures
+
–
0
votes
2
answers
2555
Output of program
void PrintNumber(unsigned int N) { printf("%u\t", N); } void PrintValue (unsigned int N) { if (N>=10) { PrintValue(N/10); } PrintNumber(N%10); } int main() { PrintValue(1234); return 0; } The output of the above program is: 2 & 4 2 & 3 1 & 3 1 & 4 How to choose between Option 3 and 4?
void PrintNumber(unsigned int N){printf("%u\t", N);}void PrintValue (unsigned int N) {if (N>=10){PrintValue(N/10);}PrintNumber(N%10);}int main(){PrintValue(1234);return 0...
Parshu gate
564
views
Parshu gate
asked
Nov 26, 2017
Programming in C
output
programming
programming-in-c
+
–
1
votes
0
answers
2556
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
2557
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
414
views
saipriyab
asked
Nov 25, 2017
0
votes
2
answers
2558
Help to clarify
int *A[10]; Now, what is meant by A[2][3]?
int *A[10];Now, what is meant by A [3]?
hem chandra joshi
311
views
hem chandra joshi
asked
Nov 24, 2017
Programming in C
programming-in-c
+
–
0
votes
1
answer
2559
recursion
void abc() { auto int a; static int s; a=s++; printf("%d%d",a,s); if(a<=2) abc(); printf("%d%d",a,s); } void main() { abc(); abc(); } how many times printf will execute??
void abc(){auto int a;static int s;a=s++;printf("%d%d",a,s);if(a<=2)abc();printf("%d%d",a,s);}void main(){abc();abc();}how many times printf will execute??
saipriyab
772
views
saipriyab
asked
Nov 24, 2017
2
votes
1
answer
2560
endian
int main() { int a = 300; char *b = (char *)&a; *++b = 2; printf("%d ",a); return 0; } Consider the size of int as two bytes and size of char as one byte.Machine is little-endian O/P_________ a=300-->(00000001 00101100)2 now b will point to 00101100 *++b = 2; what will this do ?
int main() { int a = 300; char *b = (char *)&a; *++b = 2; printf("%d ",a); return 0; }Consider the size of int as two bytes and size of char as one byte.Machine is little...
Pawan Kumar 2
974
views
Pawan Kumar 2
asked
Nov 24, 2017
Programming in C
programming-in-c
+
–
Page:
« prev
1
...
123
124
125
126
127
128
129
130
131
132
133
...
310
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register