Recent questions tagged programming-in-c

1 votes
0 answers
1414
0 votes
1 answer
1415
0 votes
1 answer
1416
0 votes
3 answers
1417
0 votes
0 answers
1418
i take m=4 and n=3? and after doing recursive calls i get 10 answer so how D) option will be correct ??
5 votes
2 answers
1419
Assume that an upper triangular matrix A[0... 99, 0 ...99] is stored in a linear array C of size 5050 with row major order. If A[0, 0] is stored in C[0], find the index o...
5 votes
3 answers
1421
What is the output of the following program?main( ){int i=4, z=12;if( i=5 || z 50)printf(“ Gate2017”);elseprintf(“ Gateoverflow”);}Gate2017Gateoverflowsyntax err...
0 votes
1 answer
1425
0 votes
1 answer
1426
INSERTION-SORT (A, n) ⊳ A[1 . . n]for (j ← 2 to len(A) ){key ← A[ j];i ← j – 1 ; while (i 0 and A[i] key) { A[...
1 votes
2 answers
1427
0 votes
0 answers
1428
while (++x){}here ++x is executed first and then condition is checked or first condition is checked then ++x
2 votes
2 answers
1429
include <stdio.h int main() { int a[][3] = {1, 2, 3, 4, 5, 6}; int (*ptr)[3] = a; printf("%d %d ", (*ptr) , (*ptr) ); ++ptr; printf("%d %d\n", (*ptr) , (*ptr) ); return 0...
3 votes
2 answers
1430
b*2b*c-2b+c*2none of these
2 votes
1 answer
1431
#includeint main(){char *x;x = (char *) &a;a = 512;x[0] = 1;x = 2;printf("%d\n",a);return 0;}What is the output of above program?(a) Machine dependentb) 513(c) 258(d) Co...
1 votes
0 answers
1434
4 votes
1 answer
1435
5 votes
2 answers
1436
int i=0; char *a = "abcde\0efgh"; while(a[++i]) printf("%d",*++a - 'a');the output of the above c code segment?
0 votes
1 answer
1439
Which functions of string include the null terminator '\0'? I know strlen() doesn't include the '\0' in giving the length, does anyone know which other functions include ...
0 votes
1 answer
1440
char *p;*p='a' ;I know this will give compiler error but can anyone explain what is the actual bug in this and how to rectify it??