Detailed C!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Guest

    Detailed C!

    C is a programming language which is based on the POP i.e. Procedure Oriented Programming Language.
    There are few approaches:
    1.Modular Approach: the program in which modules are created.Modules are the smallest part of the program.Different modules constitute to make a single program.
    2.Top Down Approach: the programs in which compiler starts compiling the code from top to down manner, in such cases the approach is called as top down approach which is seen in c programming language
    3.Bottom Up Approach: the programs in which the compiler starts the compilation from the bottom to top.It is seen in case of c++ programming language.

    C has compiler.
    In C a small program can be written as:
    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int a, b, c;
    clrscr();
    printf("Enter two numbers", a, b);
    scanf("%d %d", &a, &b);
    c=a=b;
    printf("The sum of he two numbers is %d", c);
    getch();
    }

    the output will be:
    Enter two numbers:10 20
    The sum of the two numbers is 30


    This is a small program to depict the coding of the C language.
    printf() and scanf() are the functions which are already been present in the library file, they have a specific meaning like printf() for displaying the output, and scanf() for inputting the value.
    #include<stdio.h>and #include<conio.h> are the library files which are having inbuilt functions, printf(), scanf() and getch() respectively.

    C was initially the used and resulted as a base of the up coming languages like c++, c#, JAVA etc.
    Later by modifying little features of the C language c++ raised.
  • Guest

    #2
    c programming is very good language. But now these day c++ is popular. c++ is object oriented language. this is greater advantage over the c.

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎