Subversion Repositories svnkaklik

Compare Revisions

No changes between revisions

Ignore whitespace Rev 268 → Rev 269

/programy/C/pole/pole.c
0,0 → 1,36
/////////////////////////////////////////////////////////////////
// Program spocita pocet malych, velkych pismen a cislic v napsane radce.
/////////////////////////////////////////////////////////////////
 
#include <stdlib.h>
#include <stdio.h>
 
 
int napln_pole(int* adresa,int* velikost)
{
int i;
for(i=0; i<velikost;i++) adresa[i]=i;
}
 
int vypis_pole(int* adresa,int* velikost)
{
int i;
for(i=0; i<velikost;i++) printf("%d",adresa[i]);
}
 
int main()
{
int *pole;
int velikost;
 
printf("Zadejte velikost pole:");
scanf("%d", &velikost);
 
pole=(int*)malloc( sizeof(int) * velikost);
if (pole=NULL) printf("pamet nebyla pridelena");
 
napln_pole(&pole,velikost);
vypis_pole(&pole,velikost);
 
free (pole);
}
/programy/C/pole/pole.exe
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property