I have a C program called opencv2.0 function :

cvSaveImage( out_img_name, img);  

Compiler gcc reports that

too few arguments to function cvSaveImage

The prototype of cvSaveImage in highgui.h is

CVAPI(int) cvSaveImage( const char* filename, const CvArr* image, const int* params CV_DEFAULT(0) )

After I change my call to be

cvSaveImage( out_img_name, img, 0);  

The compilation is finally successful. Does it mean default values of arguments for function are only supported in C++ but not C?

Thanks and regards!

Edit
Report