What will be the output of the following program on GCC?
Practice Declarations and Initializations –
What will be the output of the following program on GCC?
#include <stdio.h>
void change();
int main(){
auto int i=10;
register int j=20;
printf("Initial i and j=%d %d
",i,j);
change();
printf("After change() i and j=%d %d
",i,j);
return 0;
}
void change(){
auto int i=100;
register int j=200;
printf("In change() i and j=%d %d
", i,j);
}