Sensex, Nifty end marginally higher as strong earnings offset rising crude oil concerns.
Strait of Hormuz uncertainty and higher oil prices keep market sentiment cautious.
Investors shift focus to US inflation data for clues on Fed interest rate outlook.