scope example
This commit is contained in:
		@@ -1,5 +1,7 @@
 | 
			
		||||
2024-10-30  Mert Gör  <mertgor@masscollabs.xyz>
 | 
			
		||||
 | 
			
		||||
	* c-basic/scope.c (foo): same variable different scopes
 | 
			
		||||
 | 
			
		||||
	* c-basic/C.pdf: page 25,end of the page
 | 
			
		||||
 | 
			
		||||
	* c-basic/local_vs_global.c (main): local variable and global variable
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										16
									
								
								c-basic/scope.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								c-basic/scope.c
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
#include <stdio.h>
 | 
			
		||||
 | 
			
		||||
void foo()
 | 
			
		||||
{
 | 
			
		||||
  int a;
 | 
			
		||||
  {
 | 
			
		||||
  int a;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int main()
 | 
			
		||||
{
 | 
			
		||||
  int a;
 | 
			
		||||
 | 
			
		||||
  return 0;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user