Character type "char":

  * how to print ASCII code for 'space'
  * 'single quote' character surrounded by single quotes (it seems to be an 
exception)?


    
    
    echo '\n'.repr    # prints ASCII code 10 (enter)
    echo ' '.repr     # prints ' '   - but how to print ASCII code (space)?
    echo '\t'.repr    # prints ASCII code 10 (tab)
    echo '\''         # prints '     - but how to print ''' ?
    
    
    Run

Reply via email to