could u tell me the use of static storage class before a function...like
static add();

could u tell me a good link to get collection of programes in c language....
Thnaku and Regards.

Static functions are functions which have no implicit "this" argument, can access only static data members and can be called with or without instantiating a class.
eg.

class Shape
      {   
   static double trans[2][2]  // a transformation matrix
   // ...
       public:
   static void scale(double s);  //multiplies trans with s
      };

// The above can be called as
   Shape::scale(0.5) ;
   x.scale(0.5) ;  // x is the instance of class

And as far as good C programs are concerned, you can find the best C resources HERE