declare the array outside the loop and assign it through loop index
string[] arr = new string[5];
for (int i = 0; i < hfc.Count; i++)
{
HttpPostedFile hpf = hfc[i];
if (hpf.ContentLength > 0)
{
hpf.SaveAs(Server.MapPath("~/college/fileupload1/") + System.IO.Path.GetFileName(hpf.FileName));
string filepath = Server.MapPath("~/college/fileupload1/");
string path = filepath + hpf.FileName;
if(i<5)
arr[i] = path;
}
arr[0] = path;
arr[1] = path;
arr[2] = path;
arr[3] = path;
arr[4] = path;
string s = arr[i];