Friday, June 5, 2020

Overview of C

History of C :-
  • Developed at Bell Laboratories in the early seventies by Dennis Ritchie.
  • C introduced such things as character types, floating point arithmetic, structures, unions and the preprocessor.
  • The principal objective was to devise a language that was easy enough to understand to be "high-level" – i.e. understood by general programmers, but low-level enough to be applicable to the writing of systems-level software.
  • In 1978, Brian Kernighan and Dennis M. Ritchie wrote the seminal work The C Programming Language, which is now the standard reference book for C.
  • A formal ANSI standard for C was produced in 1989.
The Compile Process :-

_____________________________________

Flowchart is a diagrammatic representation of sequence of logical steps of a program. Flowcharts use simple geometric shapes to depict processes and arrows to show relationships and process/data flow.

SymbolSymbol NamePurpose
Start StopStart/StopUsed at the beginning and end of the algorithm to show start and end of the program.
ProcessProcessIndicates processes like mathematical operations.
Input/ OutputInput/ OutputUsed for denoting program inputs and outputs.
DecisionDecisionStands for decision statements in a program, where answer is usually Yes or No.
ArrowArrowShows relationships between different shapes.
On-page ConnectorOn-page ConnectorConnects two or more parts of a flowchart, which are on the same page.
Off-page ConnectorOff-page ConnectorConnects two parts of a flowchart which are spread over different pages.

Guidelines for Developing Flowcharts :-

These are some points to keep in mind while developing a flowchart −

  • Flowchart can have only one start and one stop symbol
  • On-page connectors are referenced using numbers
  • Off-page connectors are referenced using alphabets
  • General flow of processes is top to bottom or left to right
  • Arrows should not cross each other.
First Program :-
                    HELLO WORLD
Flowchart :-
 

PROGRAM

#include<stdio.h>

int main()

{

            printf("HELLO,WORLD!");

}

OUTPUT:-

HELLO,WORLD!


 ðŸ‘€ KEEP LEARNING !!! 👀 

No comments:

Post a Comment

#02 - C PROGRAM