GE Healthcare Interview Question: implement serial driver. writ... | Glassdoor

Interview Question

Software Firmware Engineer Interview Waukesha, WI

implement serial driver. write function to detect lower

  case and if not convert to upper case .

Interview Answer

1 Answer


Dec value for a and A differ by value 32 so every time we get a small letter value we can simply convert that by decreasing the value 32 from it decimal value .
For instance we get b whose dec value is 98
Subtract 32 from 98 and we get 'B'

Anonymous on Mar 23, 2015

Add Answers or Comments

To comment on this, Sign In or Sign Up.