Home » C Programs » C Program to Find Area and Circumference of Circle Using Pointers

# C Program to Find Area and Circumference of Circle Using Pointers

Basic c program to find area of circle using pointers. In this program we can check the area and circumference of circle in c programming language for beginners.

## Definition of Area

In mathematics, the area is the amount of space used by a 2D shape. Learn how to calculate the area of various shapes, such as the area of a square formula. The area of a flat surface is a measure of how much room there is. The area of a rectangle is calculated by multiplying the length by the width. The area of the rectangle above is 24 or 8.

## Circumference of Circle

The circumference of a circle is the length of one complete ‘lap’ around it, and the diameter is the length of the line segment that divides a circle in half. Consider circumference to be the circle’s outer measurement and diameter to be its interior measurement!

## Pointers in C

In C, a pointer is a variable that stores the address of another variable. This variable can be of any type, including int, char, array, function, or pointer. The pointer’s size is determined by the architecture. However, in 32-bit architecture, a pointer is 2 bytes in size. Here we have used the pointers to executed the c program to find area and circumference of circle using pointers.

## c program to find area of circle using pointers

``````//c program to find area of circle using pointers
#include<stdio.h>
void area_perimeter(float, float*, float*);
int main()
{
printf("\nArea of Circle = %0.2f\n", area);
printf("Peri of Circle = %0.2f\n", peri);
return 0;
}
void area_perimeter(float r, float *a, float *p)
{
*a = 3.14 * r * r;
*p = 2 * 3.14 * r;
}  ``````

Output: