Original Post
Hello have a look at this code: char data[256]; if (!f(data) && (strcmp(data, "") != 0)) { ... } f is a function which modifies the string in some way. We want first the function f to be evaluated and then the chcek whether the string is empty or not. My question is: Can I assume that the evaluation of this is always left to right? Or do I have to write: if (!f(data)) if (strcmp(data, "") != 0) { ... } the first code works, however I dont think that it is 100% right. thanks Sebastian