#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);  //(가)
    printf("%d", *(b+3));  //(나)
    c=func1(5, 3);
    printf("%d", c);
    d=func2(3);
    printf("%d", d);  //(다)
}
int func1(int x, int y){
    int result;
    result = x % y;
    return result;
}
int func2(int n){
    int i;
    int result=1;
    for(i = 1; i<=n; i++)
        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: