Even without food, water will keep you going well beyond the 45 days or so. As long as your body has something to digest, it will keep functioning for a while.
After so long without water, that's when it becomes painful. Your mouth dries out, and the tongue and skin in your mouth becomes brittle and starts cracking. That is a whole new kind of pain there. I'd rather deal with a toothache.