Run ❯
Get your own website
❯Run Code Ctrl+Alt+R
Change Orientation Ctrl+Alt+O
Change Theme Ctrl+Alt+D
Go to Spaces Ctrl+Alt+P
#include
// Global variable x int x = 5; void myFunction() { // Local variable with the same name as the global variable int x = 22; printf("%d\n", x); // Refers to the local variable x } int main() { myFunction(); printf("%d\n", x); // Refers to the global variable x return 0; }
22
5