Depends. If you have water you can last for months. If it's only food then first your cells start to eat at you from the inside out, then hallucination occurs, then you will try to eat anything around you no matter what it is, and then you end up falling asleep for a while.
Explanation:
Sorry if that was a creepy explanation hope this helped^^