KNOW:
BE ABLE TO:
Sample Exam Question:
What will be displayed when the following program executes?
#include <stdio.h>
void changeVars (int x, int y);
int main()
{
int a=4, b=5;
printf ("a = %d, b = %d\n", a, b);
changeVars (a,b);
printf ("a = %d, b = %d\n", a, b);
return 0;
}
void changeVars (int x, int y)
{
x = 10;
y = 20;
printf ("x = %d, y = %d\n", x, y);
return;
}