Need the exact outputs Show the output of the following program as it would appe
ID: 3802268 • Letter: N
Question
Need the exact outputs Show the output of the following program as it would appear on the screen./* program written by A. Bright Student */#include int M =15; int N = 20; int main(void) {void Louie(int, int); int a, b; a = 10; b = 35; printf("%s %d %d ", "In Main", a, b); Louie(a, b); printf("Back from Louie %d %d ", a, b); printf(" values %3d, %3d, are " M, N); return 0;} void Louie(int V, int W) {int total; printf(" In Louie "); V = V-W; W = W + M; total = V + W; printf("%d ", V) printf("%d ", W); M = 412; printf(" total is now %3d ", total);}Explanation / Answer
Attached the exact output for the above code.
Code attached below:
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x86
#include <stdio.h>
int M=15;
int N=20;
int main(void)
{
void Louie (int, int);
int a,b;
a=10;
b=35;
printf("%s%d %d ", "IN Main", a, b);
Louie(a,b);
printf("back from louie %d, %d ", a,b);
printf("values%3d, %3d, are ", M,N);
return 0;
}
void Louie(int V, int W)
{
int total;
printf("In Louie ");
V = V-W;
W = W+M;
total = V+W;
printf("%d ",V);
printf("%d ",W);
M=412;
printf(" total is now %3d ", total);
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.