AD1

Wednesday, 4 January 2017

what is the output of the following program


#include <stdio.h>
add(double a,double b)
{
return a+b;
}
void main()
{
printf("%d",add(12.3,98.2));
return;
}
view raw default.c hosted with ❤ by GitHub
output=110 
by default C functions return int values in case you did not specify the return type

No comments:

Post a Comment