How do i make a "dummy exe" using:
C "int main(int,char**) {return 0;}" program)
Printable View
How do i make a "dummy exe" using:
C "int main(int,char**) {return 0;}" program)
Compile the code.
said a different way, The following is code:
Code:int main(int,char**)
{
return 0;
}
You can compile this with a C compiler and the result will be an exe program. The program will do nothing other than return a value of 0 to the operating system.
(Most C++ compilers will also compile C.
This seems like a good time to mention that I've written beginning level books on doing C and C++. The C book would explain the above code for you. (Sams Teach Yourself C in 21 Days)
Brad!