programming 2 me
Friday, June 12, 2020
Tuesday, June 9, 2020
Monday, June 8, 2020
Sunday, June 7, 2020
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.
_____________________________________
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.
Symbol | Symbol Name | Purpose |
---|---|---|
![]() | Start/Stop | Used at the beginning and end of the algorithm to show start and end of the program. |
![]() | Process | Indicates processes like mathematical operations. |
![]() | Input/ Output | Used for denoting program inputs and outputs. |
![]() | Decision | Stands for decision statements in a program, where answer is usually Yes or No. |
![]() | Arrow | Shows relationships between different shapes. |
![]() | On-page Connector | Connects two or more parts of a flowchart, which are on the same page. |
![]() | Off-page Connector | Connects 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 !!! 👀
Subscribe to:
Posts (Atom)