0% found this document useful (0 votes)
40 views

Compile and Run The C Program

To compile and run a C program, first build the solution to check for syntax errors. If there are errors, they will be displayed. Even if the code compiles without errors, runtime errors may still occur during execution. Ensure the code compiles with no failures before running. Adding #define _CRT_SECURE_NO_WARNINGS before header files can resolve errors related to security warnings.

Uploaded by

BASIC
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

Compile and Run The C Program

To compile and run a C program, first build the solution to check for syntax errors. If there are errors, they will be displayed. Even if the code compiles without errors, runtime errors may still occur during execution. Ensure the code compiles with no failures before running. Adding #define _CRT_SECURE_NO_WARNINGS before header files can resolve errors related to security warnings.

Uploaded by

BASIC
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

COMPILE AND RUN THE

C PROGRAM
HEBA KHOJAH
compile your code by (Build Solution) :
If you have some syntax errors it will be displayed as shown below:

The error could be in


the same statement or
the previous line

HEBA KHOJAH
Some errors are run time error – which means that it will be displayed when you run your
program even if the compiler is succeed without compilation errors. as shown below:

So you have to
detect the
errors and
corrected

HEBA KHOJAH
#define _CRT_SECURE_NO_WARNINGS

If you face this kind of error just add this statement #define _CRT_SECURE_NO_WARNINGS
before #include <stdio.h>

HEBA KHOJAH
Be sure the compile successes in compilation
with “0 failed” ( no errors )
Now your code ready to run.

HEBA KHOJAH

You might also like