What is the output of the following problem int a b cr a 10
What is the output of the following problem? int a, b, cr a = 10; b = 20; C = 30; figure_ne_out {a, b, c} printf (-%d\\t%d\\t%d\".a, b, c, ); return 0;} void figure_me_out(int x, int y, int z) {printf (\"%d\\ t%d \\t%d\" r, x, y, z); x = 1; y = 2; z - 3; printf(\"%d\\ t%d\\ t%d\", x, y, z);}
Solution
Solution:
#include<stdio.h>
void figure_me_out(int x , int y, int z);
int main()
{
int a,b,c;
a= 10;
b=20;
c=30;
figure_me_out(a,b,c);
printf(\"%d\\t%d\\t%d\",a,b,c);
return 0;
}
void figure_me_out(int x,int y,int z)
{
printf(\"%d\\t%d\\t%d\",x,y,z);
x=1;
y=2;
z=3;
printf(\"%d\\t%d\\t%d\",x,y,z);
}
Output:
10 20 301 2 310 20 30
