Here You'll find all C programs which by default , you'll need for your exams.
But if you want to learn coding further , visit last of this page you'll find some links to learn.
Before you learn C programming if you don't have the C or C++ compiler you can download from here. I have used this compiler since 2014. ( Turbo C,C++)
1st Semester:-
C Programs :-
Some basic introduction and history
C is a general-purpose high level language that was originally developed by Dennis Ritchie for the Unix operating system. It was first implemented on the Digital Equipment Corporation PDP-11 computer in 1972.
The Unix operating system and virtually all Unix applications are written in the C language. C has now become a widely used professional language for various reasons.
- Easy to learn
- Structured language
- It produces efficient programs.
- It can handle low-level activities.
- It can be compiled on a variety of computers.
For expert coders it may be the oldest language for them but , for beginners you'll need this to learn if you want to learn further coding.
NOTE:- Here is the thing I want to share with you all that in this coding page , there will be not all things that you'll get here , sometimes listen to the teacher , listen every day's lecture of your college , then this content will be understood to you.
Now Some Things to remember in C
C Keywords and Identifiers:-
Character set
A character set is a set of alphabets, letters and some special characters that are valid in C language.
Alphabets
Uppercase: A B C ................................... X Y Z
Lowercase: a b c ...................................... x y z
C accepts both lowercase and uppercase alphabets as variables and functions.
Digits
0 1 2 3 4 5 6 7 8 9
Special Characters
Special Characters in C Programming , < > . _ ( ) ; $ : % [ ] # ? ' & { } " ^ ! * / | - \ ~ + White space CharactersBlank space, newline, horizontal tab, carriage return and form feed.
C Keywords
Keywords are predefined, reserved words used in programming that have special meanings to the compiler. Keywords are part of the syntax and they cannot be used as an identifier. For example:
int money;
All C Keywords
Declaration Keywords
- int
- char
- long
- double
- const
- float
- signed
- unsigned
- if
- else
- while
- do
- do while
- switch
- case
- goto
- break
- continue
- extern
- return
- union
- void
- typedef etc...
If any keyword left in the list , maybe they are used in further coding but these are also important keywords to be remembered for coding.
C Identifiers
Identifier refers to name given to entities such as variables, functions, structures etc.
Identifiers must be unique. They are created to give a unique name to an entity to identify it during the execution of the program. For example:
int name; // Here the int is keyword and "name" is identifier.
char golf; // Here the char is keyword and "golf" is identifier.
Now Time for some program examples:-
******Go to Programs Samples******
No comments:
Post a Comment
Do message if anyone having problem regarding this blog, dont write any abusive language about this blog or anyone.