c programming simple if else example

C programming simple if else example We already discussed c programming control flow statement with various types in our earlier tutorial lets see few examples C program to find the minimum value of 3 variable /* simple if statement example */ #include <stdio.h> int main() { int x,y,z,min; x=10; y=5; z=20; if(x<y&&x<z) { min=x; } […]

c programming strings

C programming strings Group of characters, digits, and symbols enclosed within quotation marks are called a string. The string is always declared as a character array. In other words, character arrays are called strings. Example: “Welcome to Balu Tutorial” Character strings are often used to build meaningful and readable programs. The common operations performed on […]

c programming pointers

C Programming Pointers A pointer is a memory variable that stores a memory address. Pointer can have any name that is legal for other variable and it is declared in the same fashion as other variables but it is always by ‘*’ operator. A pointer is a derived data type in C. it is built […]

C PROGRAMMING ARRAY

What are Arrays? An array is a collection of similar data types in which each element is located in unique memory locations. These similar elements could be all ints, or all floats, or all chars, etc. usually, the array of characters is called a ‘string’. We can use arrays to represent not only a simple […]

c programming preprocessors

c programming preprocessors The header file section and global declaration section are valued for providing unique functions to carry out program execution smoothly in the standard C program format. In general terms the word preprocessor is a code written to provide input to a processor hence, in other words, a preprocessor is a processor to […]

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 There are four types of […]

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 a collection of these functions. […]

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 statements that are executed depending […]

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 Meaning + Adding or unary […]

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. Type of operations that can […]