(Reuters) - Caterpillar Inc reported better-than-expected second quarter earnings on Tuesday, lifting its shares, but the heavy machinery maker also lowered its full-year forecast amid sluggish demand in mining and other industries.