Showing posts with label programs. Show all posts
Showing posts with label programs. Show all posts
Tuesday, February 17, 2015
Explain Basic Structure of C Programs

Documentation Section
This section consists of comment lines which include the name of programmer, the author and other details like time and date of writing the program. Documentation section helps anyone to get an overview of the program.Link Section
The link section consists of the header files of the functions that are used in the program. It provides instructions to the complier to link functions from the system library.Also Read: List of all useful Turbo C++ keyboard shortcuts
Also Read: How to create your own Header Files in C/C++?
Definition Section
All the symbolic constants are written in definition section. Macros are known as symbolic constants.Global Declaration Section
The global variables that can be used anywhere in the program are declared in global declaration section. This section also declares the user defined functions.main() Function Section
It is necessary have one main() function section in every C program. This section contains two parts, declaration and executable part. The declaration part declares all the variables that are used in executable part. These two parts must be written in between the opening and closing braces. Each statement in the declaration and executable part must end with a semicolon (;). The execution of program starts at opening braces and ends at closing braces.Also Read: What are advantages and disadvantages of C language?
Also Read: How to Write and Run C/C++ Programs in Ubuntu (Linux)
Subprogram Section
The subprogram section contains all the user defined functions that are used to perform a specific task. These user defined functions are called in the main() function.Saturday, February 14, 2015
Online Compilers The Top 5 Websites to Write Compile and Run Programs Online
Have you ever thought about writing and compiling c or c++ programs online. Are you getting bored of using c, c++, java or any other compilers in your computer? If yes then here I come with a solution. In this article I am going to share some websites that provide facility to compile and run programs of different languages like c, c++, java, python, etc. directly on internet. I have done a research on internet and find the top 5 websites given below that provides this facility. So just visit them, use them and let me know about your experience.

Also Read: GCC Compiler: Download Code::Blocks 12.11 a Free C/C++ IDE
Also Read: How to Write and Run C/C++ Programs in Ubuntu (Linux)



Also Read: How to create your own Header Files in C/C++?
Also Read: C4droid: Download Free C/C++ Compiler for Android Platform



Also Read: GCC Compiler: Download Code::Blocks 12.11 a Free C/C++ IDE
Also Read: How to Write and Run C/C++ Programs in Ubuntu (Linux)
The Top 5 Best Online Compilers
codepad.org
Codepad.org is an online compiler/interpreter, and a simple collaboration tool. Its a pastebin that executes code for you.
ideone.com
Ideone is something more than a pastebin. Its an online compiler and debugging tool which allows to compile and run code online in more than 40 programming languages.
compilr.com
Compilr is an online editor & sandbox that lets you write your code all from the comfort of your browser.
Also Read: How to create your own Header Files in C/C++?
Also Read: C4droid: Download Free C/C++ Compiler for Android Platform
compileonline.com
It is another good online compiler which allows writing and running programs in more than 50 programming languages.
onlinecompiler.net
It is not good and famous as above compilers. This allow you to write and run programs only in 6 languages i.e. c, c++, fortran, java, pascal and basic.
Subscribe to:
Posts (Atom)