If they looked desperate, I'd probably give them some food if I had it on me (granola bar etc.).
Honestly, however, it's better to donate to soup kitchens and homeless charities than to give money or even food to people on the street. It rewards vagrancy.