In article <(E-Mail Removed)>,
SAHIL MAHLA <(E-Mail Removed)> wrote:
> #include <stdio.h>
>
> void main(void)
> {
>
> char* p ="sahil";
> printf("%c,%c,%c,%c",*p,*(++p),*(p++),*p);
>
> }
>
> result-h,h,s,h
>
> it should be - s,a,a,h
Doctor! Doctor! It hurts when I do this!
Then don't that any more.
--
:-<> Siri Seal of Disavowal #000-001. Disavowed. Denied. Deleted.
'I desire mercy, not sacrifice.'
SAHIL MAHLA <(E-Mail Removed)> wrote:
> #include <stdio.h>
>
> void main(void)
> {
>
> char* p ="sahil";
> printf("%c,%c,%c,%c",*p,*(++p),*(p++),*p);
>
> }
>
> result-h,h,s,h
>
> it should be - s,a,a,h
Doctor! Doctor! It hurts when I do this!
Then don't that any more.
--
:-<> Siri Seal of Disavowal #000-001. Disavowed. Denied. Deleted.
'I desire mercy, not sacrifice.'
Aucun commentaire:
Enregistrer un commentaire