Is it ok for a cat to eat dog food?



And, is it ok for a dog to eat cat food? I have dogs and cats and I just leave their food dishes next to eachother. Once in a while Ill see one of them eat the food theyre not supposed to eat. Is that alright?