Created
June 28, 2017 09:42
-
-
Save qvil/45934492e301403f73aa19f7aaa242e2 to your computer and use it in GitHub Desktop.
Teacher appointment exam
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void print_r(int a[], int n); | |
int main(void) | |
{ | |
int a[] = {10, 20, 30, 40, 50}; | |
print_r(a, 5); | |
return 0; | |
} | |
void print_r(int a[], int n) | |
{ | |
int *p = a + 1; | |
while (p >= a) | |
printf("%d\n", *p--); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment