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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.