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 120 views
1 answer 182 views
182 views asked Feb 23, 2016 by avibootz
1 answer 155 views
155 views asked Jun 20, 2017 by avibootz
...