#include <stdio.h> #include "sous_partie.cpp" void enregistre_variable(); void main() { enregistre_variable(); printf("valeur: %d",valeur); return; }
void enregistre_variable() { valeur = 80; return; }
#include <stdio.h> #include "sous_partie.cpp" void enregistre_variable(); int variable; // <== void main() { enregistre_variable(); printf("valeur: %d",valeur); return; }