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> | |
int add(int x,int y,int z) | |
{ | |
printf("%d\n",x+y+z); | |
return; | |
} | |
int main() | |
{ | |
add(2,3,5); | |
int x=add(2,3,5); | |
printf("%d",x); | |
return 0; | |
} |
10
garbage value
if your function does not return any value , it must be declared as void
No comments:
Post a Comment