Order        Lint 8.00 Patches        Discussion Forum   
Contact      Site Map       
   Home
   Bug of the Month
   Products
   Order
   Support
   Company
   Links
   Interactive Demo
  Search:
site web

How many bugs can you find in this program?

How many can your compiler find?

 1  
 2    #include <string.h>
 3
 4    class X
 5        {
 6        int *p;
 7      public:
 8        X()
 9            { p = new int[20]; }
10        void init()
11            { memset( p, 20, 'a'  ); }
12        ~X()
13            { delete p; }
14        };

OK - What's Wrong?

 

Home | Contact | Order

PC-lint and FlexeLint are trademarks of Gimpel Software
Copyright © 2006, Gimpel Software, All rights reserved.