In this program , base address of the array is stored inside the pointer variable and using pointer the sum of array element is computed.
Program : A program to evaluate the power series [crayon-60fb90b274333631998817/] It uses if......else to test the accuracy. The power series contains the recurrence relationship of the type [crayon-60fb90b27433b353057110/] If Tn-1 (usually known as previous term) is known, then Tn (known as present term) can be easily found by multiplying the previous term by x/n. Then [crayon-60fb90b27433f277933108/] C Program for Exponent Series : [crayon-60fb90b274342901040306/] Output : [crayon-60fb90b274345564871909/]
Problem Statement : Write a program to read the values of x, y and z and print the results of the following expressions in one line. (x+y+z) / (x-y-z) (x+y+z) / 3 (x+y) * (x-y) * (y-z) [crayon-60fb90b274727728206518/] Output: [crayon-60fb90b27472e011969499/]
An electric power distribution company charges its domestic consumers as follows [crayon-60fb90b274aa7722059591/] Write a C program that reads the customer number and power consumed and prints the amount to be paid by the customer. [crayon-60fb90b274aae388505612/] Output : [crayon-60fb90b274ab2503321761/]
Program : C Program to demonstrates binary expressions using floating-point arithmetic [crayon-60fb90b274e45010153612/] Output : [crayon-60fb90b274e4c767950453/] Floating Pointer Can perform following Operations : Addition Subtraction Division Multiplication Note : Floating Point Data Type Can't Perform Modulus Operation [crayon-60fb90b274e50338126262/] Output : [crayon-60fb90b274e53576063169/]
C Program : C Program to demonstrates binary expressions using integer arithmetic [crayon-60fb90b2751ec783331104/] Output : [crayon-60fb90b2751f3166232057/] Explanation : In order to print "%" symbol inside printf, use "%%". because % symbol has pre-defined meaning inside printf statement.
C Program to calculate sum of 5 subjects and find percentage [crayon-60fb90b275f57485209364/] Output : [crayon-60fb90b275f5e985261624/]
Program to convert temperature from degree centigrade to Fahrenheit [crayon-60fb90b2762a6217109406/] Output : [crayon-60fb90b2762ad582712696/]
C Program to find area and circumference of circle [crayon-60fb90b276972353466260/] Output : [crayon-60fb90b276979108700580/] Explanation of Program : In this program we have to calculate the area and circumference of the circle. We have following 2 formulas for finding circumference and area of circle. [crayon-60fb90b27697c481159465/] and [crayon-60fb90b27697f945892240/] In the above program we have declared the floating point variable PI whose value is defaulted to 3.14.We are accepting the radius from user. [crayon-60fb90b276982794848536/] Download C Program : [box style="download"]Download Area Of Circle Program | Right Click and Save As[/box]