#include <stdio.h>
// The function signature
void power(int *x, int *y);
int main(void) {
int bs, pw;
printf("Enter the value of base and power: ");
// Verifying the inputs
if (scanf("%d%d", &bs, &pw) != 2)
return 1;
power(&bs, &pw);
return 0;
}
// The function definition
void power(int *x, int *y) {
long long result = 1;
// Dereferencing and using assignment operator for self-multiplication with
// the dereferenced 'x'
for (int i = 0; i < *y; i++)
result *= *x;
printf("Results: %lld\n", result);
}