A study conducted at the University of South Carolina found that people who fasted for 24 hours had increased levels of BDNF (brain-derived neurotrophic factor), which is associated with improved memory and learning ability.