As I start, I typed the following global hello program in Code :: Blocks -
#include<stdio.h> main() { printf("Hello world \n"); }
Now I click "Build and Run" and "Hello world" is displayed on the output screen.
However, the book I am reading offers me to remove certain program elements in order to see what errors are occurring in the program.
I made 2 changes. Firstly, I removed \ n from the program. (The book says that without \ n there will be an error when starting the program). However, when I click Build and Run, the output screen gives me the same result as when there were no errors.
The second change I made was the removal of #include from the program. Even now, the same output is displayed on the output screen as in the absence of errors.
Why is this happening? Please tell me how to fix this.
I am using the GNU GCC compiler.
EDIT: As I said, I added -wall, -wextra, -pedantic. Now when I click "Build and Run", he says that he cannot find -1-wall, -1-wextra and -1-pedantic, and the program does not start. How to fix it now?
source share