Visit: https://financeclub.viden.io
Program to explain sum of even numbers beloow range n.
Here is a program to explain sum of even numbers in a given range n . This program is written using do while. Initially consider a number num, and sum=0 . While (num
Program to perform if else if ladder performing average of 3numbers.
If else if ladder is used to check more than 3 conditions it means multiple conditions in a single program. Here I considered m1,m2,m3,tot ,avg as variables of data type integer. First perform total then average . Finally checking the conditions by some range is to be performed.
Program to find maximum from an array using pointers.
To find maximum from an array using pointers.
Program to declare a pointer and to explain the initialization of the pointer.
Using pointers which shares the address of another variable.
Program to explain nested macros.
Nested macros.
Program to explain macros with arguments.
This explains about macros with arguments.
Program to explain difference between structure and union.
This is to explain the differences between structure and union.
Program to pass a structure to a function as parameter and return structure from the function.
Passing a structure to a function as parameter.
Program to explain initialization of structure.
This is to initialize structure.
Program to declare a structure and access it's elements.
First giving the details of a person in a structure and then accessing those elements.
Program to read two valued operator.
This explains all the arithmetic operators.
Program to read an integer and print in decimal, octal, hexadecimal
This program explains the number system printing on the screen.