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(); }
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();
}
MUJHE BULHANA BHAI 10 MILLION DOLLAR WALHE CHALLENGE MAI...
bhai pass kara de yaar kal exam h teri video dekh raha hu subah se 🔥🔥🔥🔥
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
SPOT RESERVED
lol