****************************************
* LUG meet on 12 Jan. 2003 @ VJTI
****************************************

On Dec 18, 2002 at 08:29, Abhijeet D Mhatre wrote:

>Naturally I was expecting  1 as the answer. But I am getting the answer 720
>which is 6!.

t.c:2: warning: return-type defaults to `int'
t.c: In function `main':
t.c:5: warning: implicit declaration of function `factorial'
t.c:6: warning: implicit declaration of function `fff'
t.c:4: warning: unused variable `x'
t.c:7: warning: control reaches end of non-void function
t.c: In function `factorial':
t.c:12: warning: control reaches end of non-void function
t.c: In function `fff':
t.c:16: warning: control reaches end of non-void function
[satyap]~$ ./a.out
720
[satyap]~$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)
[satyap]~$


-- 
Satya. <URL:http://satya.virtualave.net/> I need a job!
Perl, Apache, Linux, C. http://www-scf.usc.edu/~phanse/resume.pdf
But I forgot all about the Amnesia Conference!!

-- 
_______________________________________________

http://mm.ilug-bom.org.in/mailman/listinfo/linuxers



Reply via email to