How do I execute a .c file?
https://stackoverflow.com/questions/55330597You cannot execute an file ".c" from shell. You must compile it first. For example: We have an file called "file.c" Open a terminal; Use gcc for compile the file and make an executable (gcc file.c -o executable) Now you can open the executable file since shell (just go to the folder and execute ./executable
How do I execute a .c file? - Stack Overflow
stackoverflow.com › questions › 55330597Mar 25, 2019 · How do I execute it? c Share Follow edited Nov 15, 2019 at 17:33 that other guy 117k 11 169 193 asked Mar 25, 2019 at 2:37 WCKennedays 129 1 3 11 1 That's usually easier. But the C code has to be compiled and linked to give an executable. Or you need a C interpreter... – Déjà vu Mar 25, 2019 at 2:41 1 Your post doesn't have a question.