what is the ouput for "q and z[2][1] Analyze and determine the outputs of the following program statements: #include #include int main() { float a-3, c-4,"p,*q; int i,j,k,n-3, b-3,w=2; float x[3][4]-(9,8,1,2,3,4,5,6,7,8,9,18), z[4][3]; float y[4]-(1,2,3,4); for (1-0;14;i++) { for(j=0; j<3; j++) } z[2][1][2][¹]; q=&z[2][1]; printf("*q= %.2f\n", *q*2); z[j][i]-x[i][j]; for (1-8;1<3;++1) {c+=y[1]-1; if(w<18) {p-&n; p+=1; printf("a-%0.2f\n c-%8.2f\n z[2][1]-%0.2f \n",a,c,z[2][1]); 1-4;j-3;k-n-1; if (il-joj-3) {i=k;j=j+1;} else if(i<8) (w=n+1+1+1+y[j]; w=n+a+k+2+y[1];} } else { } a+=y[i]+b; } printf("%d",w+5); printf("%d\n",-5);}

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
what is the ouput for "q and z[2][1]
Analyze and determine the outputs of the following program statements:
#include <stdio.h>
#include <math.h>
int main()
(
float a-3, c-4,"p, *q;
int i,j,k,n-3, b-3,w=2;
float x[3][4]-(9,8,1,2,3,4,5,6,7,8,9,10), z[4][3];
float y[4]-(1,2,3,4);
for(i=0;i<4;i++)
{ for(j=0; j<3; j++)
}
z[2][1]=x[2][¹];
q=&z[2][1];
printf("*q= %.2f\n", *q*2);
z[j][i]=x[i][j];
for(i=0;1<3;++1)
{c+=y[1] -1;
if(w<18)
{p-&n;
p+=1;
printf("a-%0.2f\n c-%8.2f\n z[2][1] -%0.2f \n",a,c,z[2][1]);
i-4; j-3;k-n-1;
if (il-jj-3)
(1=k;j-j+1;}
else if(i<8)
(w=n+1+1+1+y[j]; w=n+a+k+2+y[1];}
}
else
{
}
a+=y[i]+b;
}
printf("w-%d",w+5);
printf("%d\n",w-5);}
Transcribed Image Text:what is the ouput for "q and z[2][1] Analyze and determine the outputs of the following program statements: #include <stdio.h> #include <math.h> int main() ( float a-3, c-4,"p, *q; int i,j,k,n-3, b-3,w=2; float x[3][4]-(9,8,1,2,3,4,5,6,7,8,9,10), z[4][3]; float y[4]-(1,2,3,4); for(i=0;i<4;i++) { for(j=0; j<3; j++) } z[2][1]=x[2][¹]; q=&z[2][1]; printf("*q= %.2f\n", *q*2); z[j][i]=x[i][j]; for(i=0;1<3;++1) {c+=y[1] -1; if(w<18) {p-&n; p+=1; printf("a-%0.2f\n c-%8.2f\n z[2][1] -%0.2f \n",a,c,z[2][1]); i-4; j-3;k-n-1; if (il-jj-3) (1=k;j-j+1;} else if(i<8) (w=n+1+1+1+y[j]; w=n+a+k+2+y[1];} } else { } a+=y[i]+b; } printf("w-%d",w+5); printf("%d\n",w-5);}
Expert Solution
steps

Step by step

Solved in 2 steps with 2 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