Joe Pfeiffer
7/4/2011 1:25:00 PM
Hans Vlems <hvlems@freenet.de> writes:
> On 3 jul, 22:08, Joe Pfeiffer <pfeif...@cs.nmsu.edu> wrote:
>> vinay kumar <vinay...@gmail.com> writes:
>> > main()
>> > {
>> > int d=010;
>> > printf("%d",d);
>> > }
>>
>> I don't want to be too rude, but you could compile and run it and find
>> the output for yourself much faster than you can expect an answer here.
>
> My guess is that the OP did do that. And it failed to compile because
> printf
> wasn't defined. If the OP had managed to find the answer to that in
> his textbook then the
> question would never have arrived here.
> I seriously doubt the OP is interested in niceties as main() vs.
> main(void) or int main(void).
> Hans
Checking... at least under GCC, it compiles (with a warning due to
printf()), runs, and gives the expected result.