Psst.. new poll here.
[email protected] web/email now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!
Paste
Pasted as C by registered user raphael ( 2 years ago )
#include <stdio.h>
#include <limits.h>
#include <stdbool.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include <stdarg.h>
//auteur : Raphael De Oliveira
int variable_extern;
int fonction(){
static int x=0;
x+=1;
return x;
}
void main(int argc, char *argv[]){
variable_extern = 4;
printf("Variable global : %d\n",variable_extern);
printf("appel 1 de fonction = %d\n",fonction());
printf("appel 2 de fonction = %d\n",fonction());
printf("appel 3 de fonction = %d\n",fonction());
printf("appel 4 de fonction = %d\n",fonction());
printf("appel 5 de fonction = %d\n",fonction());
printf("appel 6 de fonction = %d\n",fonction());
return;
}
Revise this Paste