Storage classes in C || video 17 || normie coder

Поделиться
HTML-код
  • Опубликовано: 20 дек 2024

Комментарии • 6

  • @danknormie2276
    @danknormie2276  12 часов назад

    ye video laptop ke mic se record karri h jisse awaj na kate to cooperate karr le thoda
    or ye le code
    // Scope: Where the variable can be accessed in the program (e.g., within a block, a function, or globally).
    // Lifetime: How long the variable exists in memory (e.g., until the function ends, or for the entire program execution).
    // Storage location: Where the variable is stored (e.g., in the CPU registers or in the memory).
    // Default initialization: Whether the variable is initialized by default and what its default value is
    // auto
    // register
    // static
    // extern
    #include
    int func(){
    auto int counter = 0;
    counter++;
    printf("counter:%d
    ",counter);
    }
    int main(){
    func();
    func();
    return 0;
    }
    // #register
    #include
    int func(){
    register int counter = 0;
    for(int i = 0; i < 10; i++){
    counter++;
    printf("counter:%d
    ",counter);
    }
    }
    int main(){
    func();
    return 0;
    }
    // #static
    #include
    static int counter = 0;
    int chutiya(){
    counter--;
    printf("counter:%d
    ",counter);
    }
    int func(){
    counter++;
    printf("counter:%d
    ",counter);
    }
    int main(){
    func();
    func();
    chutiya();
    printf("Counter:%d",counter);
    return 0;
    }
    // #exter 1
    #include
    int counter = 0;
    int func(){
    counter++;
    printf("counter:%d
    ",counter);
    }
    // #extern 2
    #include
    extern int counter;
    extern int func();
    int main(){
    func();
    func();
    func();
    func();
    func();
    }

  • @originalcontentcreator7
    @originalcontentcreator7 12 часов назад

    MUJHE BULHANA BHAI 10 MILLION DOLLAR WALHE CHALLENGE MAI...

  • @goldyyyyyxysmabBsb
    @goldyyyyyxysmabBsb 10 часов назад

    bhai pass kara de yaar kal exam h teri video dekh raha hu subah se 🔥🔥🔥🔥

    • @danknormie2276
      @danknormie2276  8 часов назад

      bhai tere to kal ke exam me lode lagne wale h pakke... lol but koi na tereko pakka bulaunga 10 million dollar wale challenge me

  • @originalcontentcreator7
    @originalcontentcreator7 12 часов назад

    SPOT RESERVED