Programming style (C language) We consider the following function written in C language: Min_Max (int table [5],
Question:
Programming style (C language)
We consider the following function written in C language:
Min_Max (int table [5], int B)
{
int i;
int j = table [0];
for (i = 1 ; i<5 ; i+l)
{
% IfB is true, we are finding the min%
if (B)
{ if (table [i] < j) j table [i]
else { if (table [i] > j) j table [i] }
}
return j ;
Chapter 10 }
Analyze this funetion by pointing out the style elements which risk leading to understanding and expression faults.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Design Of Dependable Computing Systems
ISBN: 978-9048159413
1st Edition
Authors: J C Geffroy ,G Motet
Question Posted: