Impact of Gen-AI on IT Jobs - Growth Mindset Show
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
iOS
Java
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
1
Reply
what is cyclomatic complexity ?
Dharmendra Gaur
15y
12.9k
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
Cyclomatic complexity of a piece of code is the number of different paths available in the execution of the program.
If there is no branching (if-else or switch statement) and looping (while, for & do-while loop), then the statements will execute linearly in the function. Hence cynclomatic complexity = 1;
A Branching breaks the linear flow of execution in two parts increasing the Cyclomatic complexity of the program. Same goes for the looping statements.
Hence the more level of indentation we have in our program the more will be the Cyclomatic complexity.
Kamal Rawat
15y
0
What is cookies?
What is your greatest strength? What is your greatest weakness? What is your greatest achievement? Are you ambitious?
Message