- 
	
	
		
			
			
				Junior Member
			
			
			
			
				
					
						  
 
					    
				 
 
			
				
				
				
					Can someone explain me what is dangling pointer in C language?
				
					
						
							Hi
 Can someone explain me what is dangling pointer in C language?
 
 
 
 
 
 
 
 
 
- 
	
	
		
			
			
				Junior Member
			
			
			
			
				
					
						  
 
					    
				 
 
			
				
				
				
					Re: Can someone explain me what is dangling pointer in C language?
				
					
						
							A dangling pointer is when you have 1 or more pointers to memory that has been freed, but the pointer(s) still points to the memory block that used to be allocated. Typically the programmer will set one of the pointers to NULL when it is freed but another pointer is still pointing to the old memory block that the programmer is unaware of.
 
 
 
 
 
 
 
 
 
 
	
	
	
	
	
	
	
	
	
	
	
	
		
		
			
				 Posting Permissions
				Posting Permissions
			
			
				
	
		- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-  
Forum Rules