Structure Of C Program
Why Structure of C program
When you want to learn any program on your device likewise what you use
right now browser or Facebook or YouTube app you need to know what
option it has and every button what does can do
so in this tutorial you can learn every single code what does can do in
you program
What is mean these Codes
Now I will explain all code in this simple program
you can see first code in figure 1-1
This code mean attach these libraries of code (collection of functions and codes ready to use) with your program to call any function for execute it.
second code figure 1-2
You can see main function prefixed int (Integer Datatype) I will retrieve all Datatype at next time but now why we write integer datatype before main function ? Because main function will return decimal number when it has terminated often it returns 0 it's mean program was Exit Successfully without errors or Crashes so now what does main function do ? It is your program without this function your program is nothing so main functionality is start execution of any code in program if you need run any code ,
would be run in main function in the end you will meet return keyword often return 0 or Exit_success
it's same thing likewise when your program tell to operating system
would be run in main function in the end you will meet return keyword often return 0 or Exit_success
it's same thing likewise when your program tell to operating system
Hey, I was ending success now could you close me please to free some memory for another programs
That is important code you should be known it before starting in C Language. Okay but you forget line of code here, this is puts function you can pass to it any text parameter and it will be printing on screen that is simple function you can start your program for users { " Hello User " }
Post a Comment