what does int main() return and to what does it return
That is, in the code snippet,
int main()
{
int a=0,b=5,c;
clrscr();
c=a+b;
return c;
printf("%d",c);
getch();
}
1)What is the expected output ?
2)I tried compiling this and i dont get anything on the screen
3)In case it returns, then,
a)who is calling main ? (is it some systems call or something)
b)what is the value returned to ?