​​​​​​​Please answer the question. int x = 1; char y = ‘a’; void p() { double x = 2.5; printf("%c\n", y); } void q()

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

​​​​​​​Please answer the question. int x = 1; char y = ‘a’; void p() { double x = 2.5; printf("%c\n", y); } void q()

Post by answerhappygod »

​​​​​​​Please answer the question.
int x = 1; char y =
‘a’;
void p() {
double x = 2.5;
printf("%c\n", y);
}
void q() { int y =
42;
printf("%d\n", x);
p();
}
int main() { char x
= ‘b’; q();
return 0;
}
int a, b; void p()
{
int a, p; a =
0;
b = 1;
p = 2;
return p;
}
void print() {
printf("%d %d\n", a, b);
}
void q() { int
b;
a = 3;
b = 4;
print();
}
int main() { a =
p();
q();
return 0;
}
int a, b, c; void
print() {
printf("%d %d %d\n", a, b, c);
}
void q() { int
b;
a = 5; b = 4;
print();
}
void p() { int
a;
a = 0;
b = 1;
c = a + b; q();
}
int main() {
p();
return 0;
}
procedure P0
var x: integer;
procedure P1(x:
integer) begin
x := x + 1;
P2
end
procedure P2
begin
x := x * 2; end
begin
x := 1; P1(x);
print x
end
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply