Posts

Showing posts from May, 2018

PROGRAM STRUCTURE

A C PROGRAM INVOLVES THE FOLLOWING SECTION:- DOCUMENTATION SECTION. PREPROCESSOR SECTION. GLOBAL DECLARATION (DEFINITION SECTION). THE MAIN () FUNCTION .              1. LOCAL DECLARATIONS.              2.PROGRAM STATEMENTS & EXPRESSIONS.  USER DEFINED FUNCTION.     Let's begin with a simple C program code.    SIMPLE CODE OF C "HELLO WORLD"PROGRAM -     EXAMPLE   -       #include <stdio.h>       #include <conio .h>                   int main () { printf ( "Hello, World!\n" ); return 0 ; } output - Hello, World!

C INSTALLATION

INSTALLATION OF C LANGUAGE:- To start learning C programming, you only have to install the C compiler in your system, and nowadays C and C++ both compilers come as a single integrated package, which serves the purpose of C and C++ both program development. WHAT IS COMPILER IN C:- A compiler is a computer program that transforms human-readable (programming language) source code into another computer language (binary) code A compiler is a computer program that transforms human-readable (programming language) source code into another computer language (binary) code C compiler is a software application that transforms human-readable C program code to machine-readable code. The process of transforming the code from High-Level Language to Machine Level Language is called "Compilation". Onthe other hand, machine language is dependent on processor and processor understands zeroes and ones (binary) only. All C program execution is based on a processor which is av...