Question: C code to... Count and compute: number of total lines number and percentage of blank lines number and percentage of comments (start with // or

C code to...

Count and compute:

  • number of total lines

  • number and percentage of blank lines

  • number and percentage of comments (start with // or /*)

  • number and percentages of ints, longs, floats, doubles, char

  • number and percentages of if's

  • number and percentage of else's

  • number and percentage of for's

  • number and percentage of switch

  • number and percentage of semicolons

  • number and percentage of structs

  • number and percentage of arrays (contains [ or ], divide count by 2)

  • number of blocks (contains { or }, divide count by 2)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!