Assume for the program given below that the elements of arLY A pre your tudent number. Assume that Data type of int is stored in 1 byte (8 bits) in memory. According to this Information, write the output of the program gven below. Note: Use the given assumption to get the output, don't run the code in the computer you will get wrong output Örnek Hesaplama (Sample Calculation): Ögrendi No (Student No) 1810206037 2015010206047 A Dizisi (Array A) (1,8.1,0.2.0.6.0.3,7) {2,0,1,5,0,1,0,2,0,6,0,4,7) Winclude Winclude int main() ( int A[13]-(your acudent number): unaigned int s1-0, a2 -0; for (int i-0; 1<13; 1+H) if (A[1]42--0) 51- sl+A[1] else printf("Output 1 : 3y \n", sl): printf "Output 2 : Ry Vn", s2); printf ("after ai>1 Output 3 : tu in", a1) printf ("atter a2<<2 Oacput 4: u \a", 2): printf ("aAl52 Output 5t Su in", 1|=2)1 printt ("A"=2 Output 61 5 in", 9l's2)1 printi "al692 out put 71 9 \n", lss2): getcbar () return D:

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
Student number:2010213622
Assume for the program gven below that the elements ofamy A are your student number.
Assume that Data type of int is stored in 1 byte (8 bits) in memory. According to this
Information, write the output of the program gven below.
Note: Use the given assumption to get the output, don't run the code in the computer you will
Ret wrong output
Omek Hesaplama (Sample Calculation):
Ögrend No (Student No)
1810206037
2015010206047
A Dizisi (Array A)
(1,8,1,0,2,0.6.0,3,7)
(2,0,1,5,0,1,0,2,0,6,0,4,7)
Winclude <stdio.h>
Winclude <stdlib.h>
int ain (
int A[13]-(your acudent number):
unaigmed int a1-0, a2 O:
for (int i-0, 1<13; 1++)
if (A[1]42--0
o1- sl+1[1]
else
printf("OuEput 1: sy \n", sl):
print ("Outpus 2 Ry n", 2):
printf "after ai7si Cutput 3 I tu n", aij,
printf ("atter a2<<2 Cucpue 4: a a", :2) :
printf ("A152 Output 5t 4 Nn", p1|2)1
printt "s 52 Outpuat St n", :l's2)1
printf "l452 Out put 7: u Nn", 31s2):
getchar ()F
return D
More questions next page
Page 2 of s
03: (25 Points):
Transcribed Image Text:Assume for the program gven below that the elements ofamy A are your student number. Assume that Data type of int is stored in 1 byte (8 bits) in memory. According to this Information, write the output of the program gven below. Note: Use the given assumption to get the output, don't run the code in the computer you will Ret wrong output Omek Hesaplama (Sample Calculation): Ögrend No (Student No) 1810206037 2015010206047 A Dizisi (Array A) (1,8,1,0,2,0.6.0,3,7) (2,0,1,5,0,1,0,2,0,6,0,4,7) Winclude <stdio.h> Winclude <stdlib.h> int ain ( int A[13]-(your acudent number): unaigmed int a1-0, a2 O: for (int i-0, 1<13; 1++) if (A[1]42--0 o1- sl+1[1] else printf("OuEput 1: sy \n", sl): print ("Outpus 2 Ry n", 2): printf "after ai7si Cutput 3 I tu n", aij, printf ("atter a2<<2 Cucpue 4: a a", :2) : printf ("A152 Output 5t 4 Nn", p1|2)1 printt "s 52 Outpuat St n", :l's2)1 printf "l452 Out put 7: u Nn", 31s2): getchar ()F return D More questions next page Page 2 of s 03: (25 Points):
Expert Solution
steps

Step by step

Solved in 2 steps

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