int a[5]; int i,X=1; void swap (int&a, int&b,int&c) int t; { c++; t = a+X+c; a = b; b = t; } void main() { for (i=0;i<5;
Posted: Thu Jun 02, 2022 7:56 am
int a[5];
int i,X=1;
void swap (int&a, int&b,int&c)
int t;
{
c++;
t = a+X+c; a = b; b = t;
}
void main()
{
for (i=0;i<5;i++) a =
6 ā i;
i = 2;
swap(i, a,X);
printf(ā%d%d%d%d%d%dā,i,a[0], a[1], a[2], a[3], a[4]);
}
QUESTION:
What will be displayed in the screen after the
following program executes, provided the formal parameter denoted
with & will be transferred by:
a. value
b.value/result
c. reference
d. name
int i,X=1;
void swap (int&a, int&b,int&c)
int t;
{
c++;
t = a+X+c; a = b; b = t;
}
void main()
{
for (i=0;i<5;i++) a =
6 ā i;
i = 2;
swap(i, a,X);
printf(ā%d%d%d%d%d%dā,i,a[0], a[1], a[2], a[3], a[4]);
}
QUESTION:
What will be displayed in the screen after the
following program executes, provided the formal parameter denoted
with & will be transferred by:
a. value
b.value/result
c. reference
d. name