Whenever I compile my C basic code, the a.exe file is seen as virus by McAfee and then that file is quarantined or removed

Aug 23, 2022
Reaction score
I am on Windows 11

When I was compiling the following code:
# include<stdio.h>

int main() {
printf("Hello World");
return 0;

I got a message from McAfee saying that they have detected a virus threat from the file that I (a.exe) was trying to execute. When I clicked on more details I got to see the name of the virus and it said that the virus has been quarantined/removed. And indeed the file "a.exe" had been deleted from the original folder. Attaching an image for a better understanding of what the message really was.



Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question