Variables can be declared and memory is not allocated, Variables cannot be re-defined and memory is allocated.
Difference between Declaration and Definition in C Programming
What is Data Type in C Programming ?
Data Type is Storage Format that can contain a Specific Type. When computer programs store data in variables, each variable must be assigned a data type.
1-D Array - Compile Time Initializing in C Programming
Whenever we declare an array we can initialize array directly at compile time. Initialization of an array is called as compiler time initialization if and only if we assign certain set of values to array element before executing program. i.e at Compilation Time.
Basic Stack Operation : Data Structure
Primitive Basic Stack Operation in C We know that Stack can be represented using an array. Stack is open at one end and operations can be performed on single end. We can have different primitive operations on Stack Data Structure. Creating Stack Data Structure : typedef struct stack { int data[MAX]; int top; }stack; Basic(…)
Logical Operator in C Programming
Logical Operator in C Programming Whenever we use if statement then we can use relational operator which tells us the result of the comparison, so if we want to compare more than one conditions then we need to use logical operators. Suppose we need to execute certain block of code if and only if two(…)
Relational Operator in C Programming Language
Relational Operator in C Programming Language is used to compare values of two operands which gives us result as boolean values i,e true or false.
Variable in C Programming
A Variable is a name given to the memory location where the actual data is stored.Variable is also called as container to store the data. Variable name may have different data types to identify the type of value stored
Increment Operator in C Programming [Post Increment / Pre Increment]
In C Programming , Unary operators are having higher priority than the other operators. Unary Operators are executed before the execution of the other operators. Increment and Decrement are the examples of the Unary operator in C. Increment Operator in C Programming : Increment operator is used to increment the current value of variable by(…)
Decrement Operator in C Programming [Post Decrement / Pre Decrement]
When Postfix (-) Decrement is used with a variable in an Expression ,The Expression is evaluated first using the original value of variable and then variable is decremented by one