Enumeration gives us power to create our own data type in C. Also define what values the variable of this data type can take. By using enumeration we can simplify our programming code which helps us in maintaining code and reduce programming error. In term of technical words, we can say …
Union is also a data structure just like structure which can store multiple variables of different type. But only difference is that in case of union memory is allocated only for the largest data member and shared by other data member also. It means same memory is shared by all the variables …
Structure provide us a convenient way of having a single name which refers to group of related values. Structure provides us a way of storing different variable of different type under a same name. So we can say structure is heterogeneous collection of data . structure is used to hold …
In this chapter we will discuss different storage classes available in C. After this chapter you will be have understanding of different storage class available and the use of different storage classes. Storage class in c defines the scope of variable or we can say the lifetime of a variable …
In c programming array of characters is called string which is always terminated by null character (/0). example:- “tutorials daddy” here “tutorials daddy” is a string . Whenever compiler encounters with any string , it appends null character at the end of string. memory representation of string:- strings are …
Array of array is called multi dimensional array. general syntax of declaring multidimensional array as follow data_type array_name[size1][size2]..[sizeN]. for example :- int A[3][2]; here a is an array of two dimension. To understand multidimensional array in simple way we can think of this way. above array A is a two …
Function is a group of statements which perform a specific task. We divide our program of c in multiple functionality blocks which is called function. whenever we require to perform that functionality we call our function which is written to perform that particular functionality. below picture gives very good …
In Real life we come across many situations in which we have multiple options to choose. To implement same kind of situation in C programming we have if and else keywords. There might be scenario in real life where we have to do same thing again and again till we …