Commit 766d0511 by matjul

Upload New File

parent 9008e035
Showing with 24 additions and 0 deletions
#include <stdio.h>
#include <stdlib.h>
int main(){
int array[10];
int *pi;
int i;
for(i = 0; i < 10; i++){
array[i] = rand() % 101;
printf("%d ", array[i]);
}
printf("\n");
pi = array;
for(i = 0; i < 10; i++){
printf("%d ", *(pi + i));
}
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment