Arrays using pointers
Arrays using pointers: The pointer is very useful in the array. If we want to store the address of the array in a variable then it gives its base address …
Arrays using pointers: The pointer is very useful in the array. If we want to store the address of the array in a variable then it gives its base address …
Array of structure: We can make the array of structure as it may be required where we have to enter large amount of data. For example if we want to …
Structure within structure: The structure within structure is called the nested structure. e.g struct student { int roll_num; char name[20]; struct { int age; float weight; }info; }std; In above …
Initialization: There are many methods to initialize the structure. Some of the following examples are: Compile time initialization: 1. struct student { int roll_num; float percentage; } s1={1117,80.11}; In this …
There are four main categories of the functions these are as follows: 1. Function with no arguments and no return values. 2. Function with no arguments and a return value. …
Function call: In function call there are following three parts: a. Function name b. Actual arguments c. Semicolon Function name is must be same as we declared in our program …
Function declaration: function declaration is must before call the function. And it divides into four parts as follows a. Return-type b. Function-name c. Parameter d. semicolon The above three parts …