Detail post of C Programming | How to write a basic c program? | Execute C program.
Beginning of a C program
A C program starts with its structure, that some people have problem in understanding the basic structure, but after some time it is easily understood that the first in its basic structure is the header file which defines that it Where the code is being saved, then there is the main function from which the programming starts in which we write the code and take its return value and the code gets executed.

Header Files Inclusion
stddef.h – Defines several useful types and macros.
stdint.h – Defines exact width integer types.
stdio.h – Defines core input and output functions
stdlib.h – Defines numeric conversion functions, pseudo-random network generator, memory allocation
string.h – Defines string handling functions
math.h – Defines common mathematical functions
Main Method Declaration
What is the main function that declares the syntax of the program and from this the programming starts.
int main()
{}
Variable Declaration
After that we define the variables, we use these variables to store data in the program, whatever value we keep in these variables according to their property, we can use it at the time of writing the code.
int main()
{
int a;
here are different type of variable we can use "int , float, char, double, etc,"
Body
The body of a function in the C program, refers to the operations that are performed in the functions. It can be anything like manipulations, searching, sorting, printing, etc.
int main()
{
int a;
printf("%d", a);
.
.
Return Statement
The last part of any C program is the return statement. The return statement refers to the returning of the values from a function. This return statement and return value depend upon the return type of the function. For example, if the return type is void, then there will be no return statement. In any other case, there will be a return statement and the return value will be of the type of the specified return type.
int main()
{
int a;
printf("%d", a);
return 0;
}
First c program
#include <stdio.h>
int main( )
{
printf("Hello World");
return 0;
}
first post of C programming.-> link
Thank You for supporting this post..............
Leave Detail post of C Programming | How to write a basic c program? | Execute C program. to:
Read more #technology posts
Best Posts From waverunner
We have not curated any of waverunner's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From waverunner
- Unveiling the Wonders of the Cathode Ray Oscilloscope: A Journey into Electrical Waveform Visualization
- Revolutionizing Power Conversion: Exploring the Current Applications of Rectifiers
- Unveiling Hidden Resistance: Unearthing the Unknown Resistor using the Wheatstone Bridge
- The Art of Storing: Unraveling JK Flip-Flop Memory
- My Second Project: Enhancing Lighting Efficiency and Comfort: An Automatic Brightness Control System for LED String Lamps
- Unleashing the Power of the Sun: An Innovative Solar Panel Tracker Project
- A load test on a DC series motor and its characteristic and efficiency
- How does a Digital Watch work? (7 Segment Display Decoder)
- Fundamentals of Logic Gates: Understanding the Building Blocks of Digital Circuitry.
- MY OWN W🌍RLD...
- WASTING TIME..................
- A person is celebrating his festival but has forgotten to celebrate his daily life.
- Most Peaceful place in our campus.
- No one can stop a willing person, no one can succeed an unwilling person
- The second name of life is explore and get experience.
- I am still confused ?
- A news which is good and bad for me.
- Life teaches you something every moment, just you are ready to learn or not.
- IMPORTANCE OF OUR FAMILY IN OUR LIFE.
- People from every corner of India will participate in this celebration of the festival of independent