C while loop

C While Loop is a loop statement which can be used in various forms to execute a block of code continuously as long as the condition of the loop is true, and stops only when the condition fails. These are: While Loop : While loop is used to execute a group of action as long … Read more

Categories C

C do while loop

C Do While Loop is a loop statement which is used to execute a block of code continuously as long as the condition of the loop is true, and stops only when the condition fails like other loop statements. The unique feature of Do While loop is that it is used to execute a block … Read more

Categories C

C switch

C Switch statement is a conditional statement, which is used to choose one of the action to perform from the multiple actions, relative to the true condition. Syntax: switch (expression) { case value1:           code to be executed if expression=value1; break;   case value2:             code to be executed if expression=value2; break;   case value3: … Read more

Categories C

C if else

C If Else statement is a conditional statement, which can be used in various forms to check a condition or multiple conditions and to perform the specified action or actions, if the particular condition is true. These are: if : If statement is used to perform an action if a single condition is true. Syntax: … Read more

Categories C

C Escape Sequence

A sequence of characters starting with backslash ( \ ) that performs a specified function, which is already defined by C, is called as an escape sequence in C. It is named so as it doesn’t represent itself as a character, when it is used inside a string. Some of the C Escape Sequence are … Read more

Categories C

C Comments

C comments are used to give a brief description about any specific line of code or about a module in the code to make the code more user-friendly. C Comments can be of two types: Single line Comments Multi line Comments Single Line Comments: Single line comments can be used for commenting a line of … Read more

Categories C

C Operators

C Operators are used to perform operations on operands. Operands can be a variable or a constant. The operators are divided into various groups on the basis of the basic operations they perform. Some of the basic operators are: Arithmetic Operators: The operators which are used to perform the arithmetical operations, are grouped together as … Read more

Categories C

Keywords in c

C Keywords: There are a list of words already defined in C library. These reserved words are called as C Keywords. Every keyword is defined to serve a specific purpose. These keywords when used in C codes performs a specific operation during compilation. A Keyword in C is restricted to be used as a variable, … Read more

Categories C

Data Types in c

C Data Types are used to define the type of data that is to be stored. C data types can be classified into 4 groups: ● Basic Data Types: Integer Float Double Character ● Derived Data Types: Array Pointer Structure Union ● Enumeration Data Types: Enum ●  Void Data Types: Void Basic Data Types:  Integer: All the non-decimal numbers … Read more

Categories C

C Constants

C Constants are the identifiers that once defined, cannot be modified. C Constants can either be defined using #define preprocessor or using const keyword. Like C Variables, C Constants name can only be started with a letter or an underscore only. C #define preprocessor: Syntax: #define Constant_name Constant_Value; Constant Name: This parameter is used to … Read more

Categories C