3 ms·
Java doesn’t have pointers in the C sense. Code such as while(*dst++=*src++); or char buf[100]; char *p = buf+13; p[-3] = p[1]; doesn’t map well
by Someone 4y ago
Java doesn’t have pointers in the C sense. Code such as
while(*dst++=*src++);
or
char buf[100];
char *p = buf+13;
p[-3] = p[1];
doesn’t map well to the JVM. As others said, you’d have to (almost) emulate memory in a byte array or byte buffer to fully support C.