What are the default value of static variables in C

1 Answer

0 votes
#include <stdio.h>

int main(){
    static int sn;
  
    printf("%d", sn);
 
    return 0;
}
 
 
 
 
 
/*
run:
 
0
 
*/

 



answered Dec 25, 2021 by avibootz

Related questions

1 answer 112 views
1 answer 177 views
177 views asked Feb 23, 2016 by avibootz
1 answer 152 views
152 views asked Jun 20, 2017 by avibootz
...