What does the following code write to the monitor?
#include <stdio.h> int main( void ) { int a = 1; int b = 2; printf("a=%d\tb=%d\n", a, b ); system("pause"); /* remove if not needed */ return 0; }
The two variables a
and b
are defined at the beginning
of a code block. They have block scope.