Gimpel Home Page
Sample Program
On-Line Demonstrations of FlexeLint and PC-lint (aka FlexeLint for Windows)

Bug of the Month for September 2005

Bug of the Month Samples

The programmer wrote the fill_upper() function to fill in the upper reaches of the array a[]. With an argument of 8 he expected to fill a[8] and a[9] with the value 22. When printing the array only a[9] appeared to be filled in. What's going wrong?

Modify this example, if desired, and then hit the Analyse Code button

Run FlexeLint on Bug of the Month Samples
Home | Examples | Contact | Order

PC-lint and FlexeLint are trademarks of Gimpel Software
Copyright © 2009, Gimpel Software

Viewable With Any Browser