How To Write And Execute A C Program
Essay by 24 • October 28, 2010 • 262 Words (2 Pages) • 1,940 Views
How to Write and Execute a C Program
1. Launch Miracle C version 3.2.
2. Create a source file by going to File„Ñ-New
3. Next type in the following code in the new window.
#include
void main()
{
printf(ÐŽ§Example programÐŽÐ);
}
4. Next save this file by going to File„Ñ-Save. When saving this file you will need to preserve the .c filename extension.
5. Now compile your program by pressing F6.
6. After the program compiles you will receive similar output window.
**If you receive this window with these (or similar) results you can close out of the window.
7. Now you will need to build the program by pressing F7.
8. After this step is completed an output window should display showing the results of the linking.
**If you receive this window with these (or similar) results you can close out of the window.
9. Finally, you are now ready to run your program by pressing F8. After doing this the output of your program should appear.
Congratulations, you have successfully written, compiled and executed your very own C program!!!
**results may vary depending on the input.
...
...