Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2. #define N 4
  3.  
  4. int *invertire(int a[]){
  5.     int *p,i,*c;
  6.    
  7.    
  8.     for(c=a+3;c>a-1;c--){
  9.         printf("%d",*c);
  10.        
  11.     }
  12.  
  13.  
  14.  
  15. }
  16. int main (void){
  17.     int a[N];
  18.     int i;
  19.     int *p,*c=&a[0];
  20.     printf("Inserisci elementi \n");
  21.     for(c=a;c<a+N;c++){
  22.         scanf("%d",c);
  23.        
  24.     }
  25.  
  26.        invertire(a);
  27.  
  28.     return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement