[LCP]what value does the foo() return?

mehul radheshyam choube mrc_cprog at rediffmail.com
Sat Jan 3 12:12:02 UTC 2004


An HTML attachment was scrubbed...
URL: http://lists.linux.org.au/pipermail/linuxcprogramming/attachments/20040103/edc1b8dd/attachment.htm 
-------------- next part --------------
>Once would have been enough.

    sorry but was by mistake.

>As for the question, using the
>result of a call to foo() is undefined.  This would be clear
> from reading any competent book or the Standard.

    this question was asked to me in an interview. i answered it as undefiened but the the person taking interview was not satisfied. also following is the output i get:

[kalinga at mehul c]$ ./function
1108545272
[kalinga at mehul c]$ ./function
1108545272
[kalinga at mehul c]$ ./function
1108545272
[kalinga at mehul c]$ ./function
1108545272
[kalinga at mehul c]$ ./function
1108545272
[kalinga at mehul c]$

    any comments on this output?

mehul.


More information about the linuxCprogramming mailing list