Advertisement
Josif_tepe

Untitled

Aug 25th, 2023
831
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.  
  5.  
  6. int main(int argc, const char * argv[]) {
  7.    
  8.     if(argc < 2) { // ako imame samo input togas ova e 2, ako imame i input i output togas ova ke e 3
  9.         return 0;
  10.     }
  11.     FILE *in = fopen(argv[1], "r"); // za input
  12.    
  13.     FILE *out = fopen(argv[2], "w"); // za output
  14.    
  15.    
  16.     return 0;
  17.    
  18. }
  19. /**
  20.  7
  21.  7 2 15 0 3 13 5
  22.  
  23.  */
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement