Using C Language, correct the following program and provide the correct final output: #include   #include  #define r 3  #define c 4  int z[r][c] = {1,2,3,4,5,6,7,8,9,10,11,12};  main()  {  int a, b, c = 999;  clrscr();  for(a=0;a

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter10: Pointers
Section10.1: Addresses And Pointers
Problem 3E
icon
Related questions
Topic Video
Question

 Using C Language, correct the following program and provide the correct final output:

#include<stdio.h> 

 #include<conio.h> 

#define r 3 

#define c 4 

int z[r][c] = {1,2,3,4,5,6,7,8,9,10,11,12}; 

main() 

int a, b, c = 999; 

clrscr(); 

for(a=0;a<r;++a) 

for(b=0;b<c;++b 

if(z[a][b]<c) 

c=z[a][b]; 

printf(“%d”,c); 

getch(); 

return 1; 

)

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr