Thanlk u all.....
Type: Posts; User: beginningC
Thanlk u all.....
Actually I was trying to find out what does it return when I dont specify what to return.
I expected garbage but it gave the correct answer(in gcc, ubuntu. I am not much concerned about the...
#include<stdio.h>
int calsum(int x,int y,int z);
void main()
{
int a,b,c,sum;
printf("\nENter any three numbers\n");
scanf("%d\n%d\n%d",&a,&b,&c) ;
sum=calsum(a,b,c);
...