#include <stdio.h>
int func1(int x, int y);
int func2(int n);

void main() {
    int *b, c, d;
    int a[5]={1, 3, 5, 7, 9};
    b=a;
    printf("%d ", *b+3);              //a[1]+3 = 4
    printf("%d ", *(b+3));            //a[3]= 7
    c=func1(5,3);
    printf("%d ", c);
    d=func2(3);
    printf("%d", d);
}
int func1(int x, int y){
    int result;
    result=x%y;            // 5 % 3의 나머지 값 2
    return result;
}
int func2(int n){
    int i;
    int result=1;
    for (i=1; i<=n; i++)    // i=1은 result=1, i=2는 result=2, i=3은 result=6
        result *= i;
    return result;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: