Saturday, December 16, 2017

Source code in c programing language

Source➖ code

Source code 
1).                                                                                A source code is a plain text file that contains the programming language, all formatted and pretty and written properly. In C, the file is saved with a .c filename extension. To create a source code, you use a text editor.

2).                                                                                        Any text editor can do, although some editors offer helpful features like color coding, line numbers, syntax checking and other tools. The source code is then compiled into object code. The program that creates the object code is called a compiler. 

3).                                                                                       The traditional name of the C language compiler is CC, which stands for C compiler. The compiler reads the source code file and generates an object code file. Object code files have a .o filename extension, and they use the same filename as the original source code file. The next step is called Linking. 

4).                                                                                           It is often forgotten because modern compilers both compile and link, but linking is really a separate step. The linker takes the object code file and combines it with C language libraries. The libraries are the workhorse of the language. They contain routines and functions that control whatever device you are programming.

5).                                                                                                If all goes well, the end result is a program file. You can then test run the program to make sure that it works the way you want it to. And if not, you start the cycle all over again: edit, compile and link, or “build,”and test run. All of these tools—the editor, compiler, linker—all originated at the command prompt or terminal. You can still find them there too. Programmers do a lot of coding at the command prompt because it is quick. More common, however, is to use an IDE, or Integrated Development Environment.        
Source code example

Licence of code sources:-

  1. Source code can be proprietary or open, and licensing agreements oftreflect this distinction.
When a user installs a software suite like
Microsoft Office , for example, the source code is proprietary, and Microsoft only gives the customer access to the software's compiled executables and the associated library files that various executable files require to call program functions.
By comparison, when a user installs Apache OpenOffice, its open source software code can be downloaded and modified.

Typically, proprietary software vendors like Microsoft don't share source code with customers for two reasons: to protect intellectual property and to prevent the customer from making changes to source code in a way that might break the program or make it more vulnerable to attack. Proprietary software licenses often prohibit any attempt to discover or modify the source code.

Open source software, on the other hand, is purposely designed with the idea that source code should be made available because the collaborative effort of many developers working to enhance the software can, presumably, help make it more robust and secure. Users can freely take open source code under public licenses, such as the GNU General Public License .

Beyond providing the foundation for software creation, source code has other important purposes, as well. For example, skilled users who have access to source code can more easily customize software installations, if needed.

Meanwhile, other developers can use source code to create similar programs for other operating platforms -- a task that would be trickier without the coding instructions.
Access to source code also allows programmers to contribute to their community, either through sharing code for learning purposes or by recycling portions of it for other applications.
Many different programs exist to create source code.

                Here is an example of the source code for a Hello World program in C language:

1 #include

2 #include

3 void main()

4 {

5 clrscr();

6 printf (“Hello World!”);

7 getch();

8 }

          Even a person with no background in programming can read the C programming source code above and understand that the goal of the program is to print the words "Hello World." In order to carry out the instructions , however, this source code must first be translated into a machine language that the computer's processor can understand; that is the job of a special interpreter program called a compiler -- in this case, a C compiler.

In the 1950s and '60s, source code was often provided for free with software by the companies that created the programs. As growing computer companies expanded software's use, source code became more prolific and sought after. 

Five programming project of  a  source code :-

Customer Billing System Project:
                                  How to Execute – Load the CustomerBillingSystem.c in to C editor and execute the program in routine way.
Download Link

   Pacman Game Project:-

                How to Execute – Extract the project files into a separate folder and run Pacman Game in C.exe file to execute the program.

   Hospital Management System Project:-

                     How to Execute – Extract the project files in to a folder and run Hospital Management Project.exe file to execute the project. You can even load the Hospital Management project.c file into C editor and execute the program the routine way.

    Employee Record System Project:-

             How to Execute – Extract the project files in to a folder and run Employee Record System.exe file to execute the project. You can even load the Employee Record System.c file into C editor and execute the program the routine way.

   Cyber Management System Project:-

            How to Execute – Extract the project files and run the client side and server side main.exe files to execute the project.


Please comment and follow this site blog inbox