Question: what value will the print statements at Comment 1 (line 14), Comment 2 (line 16), Comment 3 (line 20), Comment 4 (line 22), print? Given
what value will the print statements at
Comment 1 (line 14),
Comment 2 (line 16),
Comment 3 (line 20),
Comment 4 (line 22),
print?
Given this code: 1 #include 2 bn m ----- 3 void myFunction (int* a, int c) 4 { 5 6 ~ 2 7} 8 9 int main() CO 10 { 11 12 OHN M 13 14 15 16 17 18 19 20 21 22 23 24 25 } *a = c; c = 15; int a = 50; int c = 2; printf("%d", a); printf("%d", c); myFunction (&a, c); printf("%d", a); printf("%d", c); return 0; //Comment 1 //Comment 2 //Comment 3 //Comment 4
Step by Step Solution
3.53 Rating (156 Votes )
There are 3 Steps involved in it
Heres a concise overview Your Question Its about determining the output of specific printf statements in a given C program Key Concepts Variables You ... View full answer
Get step-by-step solutions from verified subject matter experts
