3 ms·
Yup, C and many other languages also have it: if (ptr = strchr(address, ':')) port = atoi(ptr + 1);
by geofft 7y ago
Yup, C and many other languages also have it:
if (ptr = strchr(address, ':'))
port = atoi(ptr + 1);
- iso-8859-1 7y agoIt doesn't do scoping, so not really the same.
- gpderetta 7y agoit can in C++ (when specifying auto or a type). I thought it did in C as well, but apparently not.