Re: what is difference between sizeof and strlen
Lawrence Kirby wrote:
[color=blue]
> By writing void main() your program has undefined behaviour even if it
> never returns or exits at all. There is no guarantee that will even be
> called successfully at program startup - you havn't provided a function
> with a type that is compatible with what the implementation expects to
> call.[/color]
2 variants: either it works or it does not. And only one of them will be
chosen on some particular system/compilator. I would not call it "undefined
behaviour", it's quite defined for a platform. And I just want to know the
name of the platform where it does not work. Could you enlighten me?
--
Anton Petrusevich
Lawrence Kirby wrote:
[color=blue]
> By writing void main() your program has undefined behaviour even if it
> never returns or exits at all. There is no guarantee that will even be
> called successfully at program startup - you havn't provided a function
> with a type that is compatible with what the implementation expects to
> call.[/color]
2 variants: either it works or it does not. And only one of them will be
chosen on some particular system/compilator. I would not call it "undefined
behaviour", it's quite defined for a platform. And I just want to know the
name of the platform where it does not work. Could you enlighten me?
--
Anton Petrusevich
Comment