Computer Science, asked by Yashp1, 1 year ago

What is a C program and what basics do we need to clear before we start learning It?

Answers

Answered by kvnmurty
7
A C language program is sequence of statements. These programming statements are written according to the grammar or syntax rules of the language.

C language is a procedural language. The statements are executed one after another.  A statement consists of an expression (containing terms) followed by a semicolon ( ; ).

Example:
              #include <stdio.h>
              main () 
              {
                     int i;
                         scanf("%d", &i);
                         printf("%d\n", i);
              }

C language program must have a function called "main". The first statement executed is the first statement in the "main" function.

================
BASICS:

     The following are some basics we need to know before learning C language.

1. Meaning of expression, operators, operands, mathematics related to operators.
2. Logical expressions and logical operation.
3. IMPORTANT:   
       Flowcharts:
      Flowcharts indicate the flow of control in the execution of a program or concept. We have different shaped boxes for different type of statements.

      Algorithm:   
           It is a sequence of operations to perform, so that input is transformed into the desired output. An algorithm is to be unambiguous. It is to be finite and should complete execution in a finite time.


kvnmurty: :-)
Yashp1: Thanks a lot. I found it very useful
Similar questions