string1++;string2++;

Kaz Kylheku kaz@zeugmasystems.com
Thu Sep 7 23:20:00 GMT 2006


 
> Konstantin wrote:
> Hi!
> Why there are no problems with this code in gcc?  

Because GCC supports pointer arithmetic on void * pointers as an
extension.

Try it with -Wall -ansi -pedantic.

> string1++;  //MS VC have got error  size unknown
> string2++;  //MS VC have got error  size unknown

MSVC doesn't have that extension.



More information about the Gcc-help mailing list