Point out the error, if any, in the following program.
#include "stdarg.h"
main()
{
display ( 4, 12.5, 13.5, 14.5, 44.3);
}
display(int num, ...)
{
float c; int j;
va_list ptr;
va_start (ptr, num);
for ( j = 1; j 5
731 5b5cc7dce4d2b419777515b9
Q: Point out the error, if any, in the following program. #include "stdarg.h" main() { display ( 4, 12.5, 13.5, 14.5, 44.3); } display(int num, ...) { float c; int j; va_list ptr; va_start (ptr, num); for ( j = 1; j
- Show Answer
- Workspace
- Discuss