GATE CS 2016, set 1 · Question 25 · Programming and Data Structures · Numerical answer (NAT) · 1 mark · no negative marks
Consider the following C program.
#include<stdio.h> void mystery(int *ptra, int *ptrb) int *temp; temp = ptrb; ptrb = ptra; ptra = temp; int main() int a=2016, b=0, c=4, d=42; mystery( a, b); if (a < c) mystery( c, a); mystery( a, d); printf("%d ", a);
The output of the program is ______ .
Answer
Answer 2016
Answer from the official GATE CS 2016 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes