c programming fundamentals
Structure of C Program Include header file section Global declaration section /* comments */ main () //function name { Declaration part Executable part } User defined functions { Declaration part Executable part } Include header file section A C program depends upon some header files
c programming data types
c programming data types A data type is essential to identify the storage representation and the type of operations that can be performed on that data. In general, data type associated with variable indicates, Type of value stored in the variable. Amount of memory (size) allocated for the data variable.
c programming Operators
c programming Operators Operators are ‘C’ tokens which can join together individual constants, variables array elements, and function references. Operators act upon data items called as operands. Classification Arithmetic operators Relational operators Logical operators Assignment operator Increment and decrement operator Conditional operator Bitwise operator Special operator Arithmetic Operators Arithmetic operator
c programming control flow statements
c programming control flow statements A statement is an instruction that causes an action to be performed when executed. The C statements end with ‘;’. In C there are 6 types of statements are available. Selection statement Iteration statement Jumping statements Label statements Expression statement Block statement Selection statements are
C Programming functions
What are the Functions? A function is a self-contained block or a sub-program of one or more statements that perform a special task (specific and well-defined tasks) when called. A function is a block of statement that performs some kind of task. Every C program can be thought of as
c programming storage classes
Storage classes The storage class of a variable tells the compiler, The storage area of the variable. The initial value of the variable if not initialized. The scope of the variable. Life of the variable i.e. how long the variable would be active in the program. Types of storage classes