-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextern_implementation.c
46 lines (37 loc) · 1.08 KB
/
extern_implementation.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Extern Implementation
#include <stdio.h>
#include "extern_declaration.h" //varaiables and function defination
void CircleAreaUsingVoid(int);
float CircleAreaUsingFloat(int);
void CircleAreaUsingVoid(int x)
{
printf("Area OF Circle is:%f\n", (3.14 * x * x));
}
float CircleAreaUsingFloat(int x)
{
return (3.14 * x * x);
}
int main()
{
int x;
float y;
long long int z;
double g = 56.348943;
printf("Enter the value of (int)x,(float)y,(long long int)z:\n");
scanf("%d %f %ld", &x, &y, &z);
printf("x=%d,y=%f,z=%ld,g=%lf\n", x, y, z, g);
CircleAreaUsingVoid(2);
printf("Area Of Circle Is: %f", CircleAreaUsingFloat(4));
return 0;
}
//print the all negative numbers in an array
//sum of elements in an array
//find the even numbers and odd numbers in an array
//find the largest number in an array
//find the smallest number in an array
//find the prime numbers in an array
//count the negative numbers in an array
//print unique elements in an array
//merge 2 arrays into third array
//reverse of an array
//sort even and odd elements in an array