The following code won't compile with MSVC 2010, but when compiled and executed with Turbo C, it reports the value of x as 20, even when there is no return statement in fun1.....
Code:#include<stdio.h> int x; int fun1(); int main() { x=10; printf("x = %d\n",fun1()); } int fun1(void) { x=x+10; }