GE HealthCare Interview Question

implement serial driver. write function to detect lower case and if not convert to upper case .

Interview Answer

Anonymous

Mar 23, 2015

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'