Click here to Skip to main content
15,913,186 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Could please let me know , how to eliminate\reduce the no of if statements, without using the concepts of OO, in C\MATLAB, so that cyclomatic complexity get reduce?, what are the genric steps to reduce if statements.
Posted

1 solution

Wouldn't matter what language it is in - it still depends on exactly what the if clauses and statements are doing.

And I doubt that in many practical situations that anyone cares about "cyclomatic complexity". That is because normally not all paths are equal. This can be true in if trees where one (or at least a small group) are taken far more often than others. But again this still depends on the nature of the ifs themselves.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900