Welcome, guest! Login / Register - Why register?
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 ( 1 year 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("x=%d\n",fonction());
    printf("x=%d\n",fonction());
    printf("x=%d\n",fonction());
    printf("x=%d\n",fonction());
    printf("x=%d\n",fonction());
    printf("x=%d\n",fonction());

    return;
}

 

Revise this Paste

Your Name: Code Language: