Basic Elements of C Programming

Before Learning C programming first you should know what is c language and structure of a c program then you should focus basic elements of c programming. these are some basic building blocks of c programming that you must study to learn c programming.

Basic Elements of C programming

C Character Set

C Character set are the set of alphabets, digits and special symbols that can be used in c programming. C Character set contains Alphabets both small and uppercase, digits and Special symbols.

Keywords

C Keywords are those words whose meaning already been defined to C Compiler.there are 32 Keywords in C Language. to read more visit our Keywords in C Language tutorial.

Identifiers

Identifiers are names used to C entities, such as variables, functions, structures and any other user-defined element. Identifier are created to give unique name to C entities to identify it during the execution of program.

Comments in C Language

Comments are used in a program to clear the purpose of the program or a statement in the program. Comments are Optional and ignored by the Compiler but when a team working on a project then comments can be used to help other team members in understanding a particular statement or a program. Comments in a C program should be enclosed within /*     */
/∗ formula to add two number ∗/
sum=a+b;

Comment can be split over more than one line.
/∗ This is a
Multiline
Comment ∗/

ANSI C allows comments in the following way.
//this is a c comment

Whitespace

whitespace in c language is completaly igonered by C compiler but you should use it make your program more readable. whitespace is the term used in C to describe blank spaces, tabs, newline characters, comments and escape sequences.


Constants

Constant is a value that doesn't change during the execution of program also known as Literals. a constant or a literal can be any type of data types in c like integer literals, floating-point literals, character literals, string literals.


Variables

Variables are simply names used to refer to a location in memory – a location that holds a value with which we are working.A particular type of a variable can hold only the same type of constant.



SHARE THIS
Previous Post
Next Post