Question i need more ram, but dont know if i can use the ram i have in a computer with a virus

Oct 9, 2019
5
0
10
i just built a new PC, but im a little sparce on ram, i have an old computer that had a virus on it that has 8 gigs of ram but im not sure if the virus affected it, or if it would affect my new computer