Recent questions tagged programming

2 votes
2 answers
361
Consider the following programint find (int n) { int a = 1; for (i = 1; i < = n; i ++) for (j = 1; j < = i; j++) for (k = 1; k <= j, k++) a = a + 1; ...
0 votes
1 answer
362
What is the output of the following c-code ? A.It prints the APPLIED B.It prints the DEILPPA C.It prints nothing D.None of the above
0 votes
1 answer
363
applied gate test seriesWhat is the output of the following c-code[ Note: Assume integer as 2 bytes] ?#include<stdio.h>int main(){ int x = 500;char *p=&x;*++p=2;printf(�...
0 votes
1 answer
364
#include<stdio.h>Int main(void){Int a=printf("%d",printf("%d %d",printf("GATE"),printf("OVERFLOW")));printf("%d",a);return 0;}What is the reason for different output?Expl...
0 votes
3 answers
365
0 votes
3 answers
366
#include <stdio.h>int main(){ int a=20; int *ptr=&a; int x=a; printf ("%p\n",&*ptr); printf ("%p\n",&a); return 0;}Why both printf() line printing the s...
2 votes
2 answers
367
4 votes
1 answer
369
2 votes
1 answer
370
2 votes
4 answers
373
Bug meansA logical error in a programA difficult syntax error in a programDocumenting programs using an efficient documentation toolAll of the above
5 votes
3 answers
375
#includeint main( ){int x=5, y=9;x=(x= x+y)-(y= x-y);printf("%d %d ", x, y);return 0;} A. 9 5B. 5 14C. 14 5D. 5 9
6 votes
5 answers
378
What is the output of the code given below?# include<stdio.h int main() { char name[]="satellites"; int len; int size; len= strlen(name); size = sizeof(name); printf("%d"...
2 votes
3 answers
379
12 votes
2 answers
383
2 votes
2 answers
387