Facebook
From Marek s., 7 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 247
  1. // asd.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5.  
  6. void modul(int *tab, int n)
  7. {
  8.         for(int=0;i<n;++i)
  9.         {
  10.                 if(tab[i]<0)
  11.                         tab[i]=-tab[i];
  12.         }
  13. }
  14. int _tmain(int argc, _TCHAR* argv[])
  15. {
  16.  
  17.         int t[]={1,2,-4,0,-2,2};
  18.         modul(t,6);
  19.         return 0;
  20. }