Correct Answer: 9
Explanation:
Loading...
Correct Answer: 9
Explanation:
Take your GATE-CS preparation to the next level. Practice with full-length mock tests, get instant results, and track your progress with detailed analytics.
Browse GATE-CS Test SeriesConsider the following three ANSI-C programs, P1, P2, and P3.P1: int a=5 globally, int a=7 locally i…
int x = 126, y = 105; do { if(x > y) x = x - y; else y = y - x; } while(x != y); printf("…
#include <stdio.h> int gate(int n) { int d, t, newnum, turn; newnum = turn = 0; t = 1;…
#include <stdio.h> int g(int p) { printf("%d", p); return p; } int h(int q) { printf("%d", q);…
Consider an array X that contains n positive integers. The C code snippet has been written to comput…
#include <stdio.h> int main(){ int a = 6; int b = 0; while(a < 10) { a …