what is the output of the following program
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
add(double a,double b) | |
{ | |
return a+b; | |
} | |
void main() | |
{ | |
printf("%d",add(12.3,98.2)); | |
return; | |
} |
by default C functions return int values in case you did not specify the return type
No comments:
Post a Comment