Is there a way i can run a c program and saves the output in excel or word processor
Is there a way i can run a c program and saves the output in excel or word processor
No, I don't think so... unless you manually type everything you see.
It's a miracle that curiosity survives formal education - Albert Einstein
Not really. You can look up the file formats and write your own functions, in C, to output binaries in that format. But it's so much work for complex proprietary formats like Microsoft use that it's not very realistic.
To get data into Excel, output it as a .csv file. For wordprocessing, there isn't such an easy answer, assuming that a simple text file is rejected as not having any formatting. You could try html, but I don't know how good a job MS do of reading it.
I'm the author of MiniBasic: How to write a script interpreter and Basic Algorithms
Visit my website for lots of associated C programming resources.
https://github.com/MalcolmMcLean
OpenDocument - Wikipedia, the free encyclopedia
Recent versions of MS word, and OpenOffice/LibreOffice should be able to read ODF format files.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.