Pointer #1457
              
                
                  
                  
                    Answered
                  
                  by
                    Pranjal-88
                  
              
          
                  
                    
                      Sam-Wann54
                    
                  
                
                  asked this question in
                Q&A
              
            
            
              Pointer
            
            #1457
          
          
        -
| 
         What happens if you dereference a null pointer?  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            Pranjal-88
          
      
      
        Dec 30, 2024 
      
    
    Replies: 2 comments
-
| 
         Dereferencing a null pointer leads to undefined behavior.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        Sam-Wann54
-
| 
         In C, dereferencing a NULL pointer is undefined behavior.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Dereferencing a null pointer leads to undefined behavior.