C Programming Language. BASICS Intro ENGLISH(version) presented by sanjay verma.
Dennis Ritchie(1941-2011) (Creator Of C Language).
USES OF C IN MODERN WORLD:. Software Programming (Linux) Embedded Systems (Consumer Electronics) Application Development (Google) Game Development (Bgmi,Pubg Etc) Complier Development ( MS Visual Code ) Scientific And Numerical Computing ( BLAS,LAPACK, Physics , Finance ) Networking And Protocol Development (Webservers, Ip Stacks Etc).
Character Set A character set is a set of alphabets, letters and some special characters that are valid in C language..
SPECIAL CHARACTERS. [image] A screenshot of a computer Description automatically generated.
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:.
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: money And accountBalance are indentifiers. Error Chances identifier names must be different from keywords For Example: You cannot use int as an identifier because int is a keyword..
Rules Must Be Remember. A valid identifier can have letters (both uppercase and lowercase letters), digits and underscores. The first letter of an identifier should be either a letter or an underscore. You cannot use keywords like int, while etc. as identifiers. There is no rule on how long an identifier can be. However, you may run into problems in some compilers if the identifier is longer than 31 characters..
VARIABLES. A Variable Is a Container (Storage Area) To Hold Data. To Indicate The Storage Area, Each Variable Should Be Given a Unique Name (Identifier). Variable names are just the symbolic representation of a memory location. For example: playerScore is a variable of int type. Here, the variable is assigned an integer value 95. The value of a variable can be changed, hence the name variable..
Rules For Naming A Variable. A variable name can only have letters (both uppercase and lowercase letters), digits and underscore The first letter of a variable should be either a letter or an underscore POSSIBLE ERROR i) You should always try to give meaningful names to variables. For example: firstName is a better variable name than fn. ii) There is no rule on how long a variable name (identifier) can be. However, you may run into problems in some compilers if the variable name is longer than 31 characters..
LITERALS. Literals are data used for representing fixed values. They can be used directly in the code. For Example; 1,2.5, 'd' Etc.
A character literal is created by enclosing a single character inside single quotation marks. For example: 'z', 'x', 's' etc. ESCAPE SEQUENCES Sometimes, it is necessary to use characters that cannot be typed or has special meaning in C programming. For Example:- \n used for new line.
STRINGS. A string literal is a sequence of characters enclosed in double-quote marks. For Example:-.