This commit is contained in:
“[JMF]” 2023-11-09 00:20:10 +01:00
parent 5015fcc824
commit 411ef6c9e4
1 changed files with 30 additions and 0 deletions

30
TP6/algebre.c Normal file
View File

@ -0,0 +1,30 @@
#include <stdio.h>
#define N 2
struct vector {
float _[N];
};
int main()
{
struct vector X;
void AfficheVect (struct vector X);
X._[0]= 1;
X._[1]= 2.;
AfficheVect(X);
return 1;
}
void AfficheVect (struct vector X)
{
for(int i=0; i<N ; i++)
{
printf("%f \n",X._[i]);
}
return;
}