Exploring Programming Language Gate 2015 Problem Solution
Exploring Programming Language Gate 2015 Problem Solution reveals several interesting facts.
- Consider the following C program: # include stdio.h int main( ) { int i, j, k = 0; j = 2 * 3 / 4 + 2.0 / 5 + 8 / 5; k -= --j; for (i = 0; i lessThan ...
- The output of the following C program is_____________. void f1 ( int a, int b) { int c; c = a; a = b; b = c; } void f2 ( int * a, int * b) { int ...
- Consider the following recursive C function. void get(int n) { if (n lessThan 1) return; get (n-1); get (n-3); printf("%d", n); } If GET(6) ...
- include stdio.h int f1(void); int f2(void); int f3(void); int x=10; int main() { int x=1; x += f1() + f2 () + f3() + f2(); printf("%d", x); return 0; } ...
- Consider the following C program segment. int main() { char s1[7] = "1234", *p; p = s1 + 2; *p = '0'; printf("%s", s1); } What will be ...
In-Depth Information on Programming Language Gate 2015 Problem Solution
Consider the following C function. int fun(int n) { int x=1, k; if (n==1) return x; for (k=1; k lessThan n; ++k ... Consider the following pseudo code, where and are positive integers. begin q := 0 r := x while r ≥ y do begin r := r - y q := q + 1 ... What is the output of the following C code? Assume that the address of x is 2000 (in decimal) and an integer requires four ... Consider the following function written in the C programming langauge : void foo(char *a) { if (*a && *a ...
Consider the following C program #include stdio.h int main() { static int a[] = {10, 20, 30, 40, 50}; static int *p[] = {a, a+3, a+4, a+1, ...
Stay tuned for more updates related to Programming Language Gate 2015 Problem Solution.