Sample code for the scope of if statements in c
- 2020-04-02 01:32:36
- OfStack
# include <stdio.h>
int main(void)
{
if (1 > 2)
printf(" First expression ");
printf(" Second expression ");
}
Indicates that the scope of the if statement is limited to the first expression immediately following the if