B Data: lodified : Data: Modified : 51 54 25 77 44 70 96 87 94 88 6 9 7 14 8 7 15 15 13 16 51 54 25 77 44 70 96 87 94 88 0 0 2 1 1 0 0 0 @ 1 D Data: Modified : -4 -1 3 0 0 -7 -3 -1 -5 0 51 54 25 77 44 70 96 87 94 88 Data: Modified : 51 54 25 77 44 70 96 87 94 88 5 20 10 49 16 0 54 56 36 64

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
1 finclude <stdio.h>
2 tinclude <stdlib.h>
3 +define SIZE 10
4
5 void d_fcn (int *const, int );
6 int main (void)
7日{
8
int data[SIZE];
int i;
9
10
for (i=0;i<SIZE;i++)
* (data+i)=10+rand () %89;
printf("Data: \t ");
for (i=0;i<SIZE;i++)
printf("%3d",*(data+i));
11
12
13
14
15
d_fcn (data,SIZE);
printf("\nModified : ");
for (i=0;i<SIZE;i++)
printf("%3d",* (data+i));
16
17
18
19
20
21
22
return 0;
24 void d_fcn(int *const n, int size)
日{
26
27
int i; int x = 0; int y = 0;
for (i=0;i<size;i++)
28E
29
30
31
x = * (n+i) & 10;
y = * (n+i) / 10;
* (n+i) = x - y;
32
33
B
51 54 25 77 44 70 96 87 94 88 Data:
0 0 2 1 1 0 0 0 0 1 Modified :
A
Data:
Modified :
51 54 25 77 44 70 96 87 94 88
6 9 7 14 8 7 15 15 13 16
D
Data:
Modified : -4 -1 3 0 0 -7 -3 -1 -5 0
51 54 25 77 44 70 96 87 94 88
Data:
Modified :
51 54 25 77 44 70 96 87 94 88
5 20 10 49 16 0 54 56 36 64
222N 22 223 333
Transcribed Image Text:1 finclude <stdio.h> 2 tinclude <stdlib.h> 3 +define SIZE 10 4 5 void d_fcn (int *const, int ); 6 int main (void) 7日{ 8 int data[SIZE]; int i; 9 10 for (i=0;i<SIZE;i++) * (data+i)=10+rand () %89; printf("Data: \t "); for (i=0;i<SIZE;i++) printf("%3d",*(data+i)); 11 12 13 14 15 d_fcn (data,SIZE); printf("\nModified : "); for (i=0;i<SIZE;i++) printf("%3d",* (data+i)); 16 17 18 19 20 21 22 return 0; 24 void d_fcn(int *const n, int size) 日{ 26 27 int i; int x = 0; int y = 0; for (i=0;i<size;i++) 28E 29 30 31 x = * (n+i) & 10; y = * (n+i) / 10; * (n+i) = x - y; 32 33 B 51 54 25 77 44 70 96 87 94 88 Data: 0 0 2 1 1 0 0 0 0 1 Modified : A Data: Modified : 51 54 25 77 44 70 96 87 94 88 6 9 7 14 8 7 15 15 13 16 D Data: Modified : -4 -1 3 0 0 -7 -3 -1 -5 0 51 54 25 77 44 70 96 87 94 88 Data: Modified : 51 54 25 77 44 70 96 87 94 88 5 20 10 49 16 0 54 56 36 64 222N 22 223 333
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY