|
|
|
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 };
|
|
|
Home | Contact | Order
PC-lint and FlexeLint are trademarks of Gimpel Software
Copyright © 2006, Gimpel Software, All rights reserved.
|
|