Stock markets rebounded Friday as General Electric reported better-than-expected earnings, but profit warnings from other companies made for a largely subdued session. The major indicators recorded losses for the second straight week.

The Dow Jones industrial average gained 41.66, or 0.4 percent, to 10,213.22, after posting declines in four of the past five sessions.

The Nasdaq composite index added 11.01, or 0.6 percent, to 1946.33. The Standard & Poor's 500-stock index was up 3.70, or 0.3 percent, at 1112.81.

For the week, the Dow was down 0.7 percent, the S&P 500 lost 1.1 percent and the Nasdaq fell 3 percent.

Investors have become increasingly pessimistic as profit warnings pile up, notably from the tech sector. Most analysts remain upbeat, however, expecting earnings growth of 18 percent to 20 percent overall for the S&P 500.

Before the Federal Reserve's June 30 decision to raise interest rates, investors were worried about an overheating economy increasing inflationary pressure. The current concerns are a stark contrast to that.

GE gained 47 cents, to $32.17, after reporting a 3 percent rise in earnings, beating Wall Street's expectations by a penny a share.

Information technology provider Unisys was among the day's worst performers, declining $1.99, to $10.87, after the company said its profit and sales would miss forecasts because of unexpected contract deferrals and delays late in the quarter.

Defense contractor Titan was down 16 cents, at $11.86, after saying it would post a hefty loss for the quarter on charges related to its failed merger with Lockheed Martin and a federal investigation over alleged illegal payments to overseas clients.

Computer Associates International was up 5.2 percent, or $1.27, at $25.81, a day after saying it had reached profit goals for the quarter but had lower-than-expected revenue.

Arch Coal fell $1.95, to $34.47, after warning investors its earnings would probably come in at the low end of expectations, largely because of rail-service disruptions during the quarter.

Other Indicators

* The New York Stock Exchange composite index rose 26.82, to 6500.40; the American Stock Exchange index rose 6.11, to 1261.16; and the Russell 2000 index of smaller-company stocks rose 3.02, to 563.73.

* Advancing issues outnumbered declining ones by 7 to 4 on the NYSE, where trading volume fell to 1.18 billion shares, from 1.4 billion on Thursday. On the Nasdaq Stock Market, advancers outnumbered decliners by 4 to 3 and volume totaled 1.37 billion, down from 1.77 billion.

* The price of the Treasury's 10-year note rose 63 cents per $1,000 invested, and its yield fell to 4.46 percent, from 4.47 percent on Thursday.

* The dollar fell against the Japanese yen and the euro. In late New York trading, a dollar bought 108.24 yen, down from 108.77 late Thursday, and a euro bought $1.2408, up from $1.2390.

* Light, sweet crude oil for August delivery settled at $39.96, down 37 cents, on the New York Mercantile Exchange.

* Gold for current delivery fell to $407.50 a troy ounce, from $407.80 on Thursday, on the New York Mercantile Exchange's Commodity Exchange.