void func1(int,int); void func2(int *,int *); int main() { int one = 1, two = 2; func1(one, two); printf("one = %d two = %d\n", one, two); func2(&one,&two); printf("one = %d two = %d\n", one, two); return 0; } void func1(int a, int b) { a = 10; b = 20; } void func2(int *a, int *b) { *a = 10; *b = 20; }
Email Me |
Office Hours |
My Home Page |
Department Home |
MCC Home Page
© Copyright Emmi Schatz 2021