Federal Reserve Chairman Ben Bernanke addresses the Economic Club of...

Federal Reserve Chairman Ben Bernanke addresses the Economic Club of New York Tuesday in Manhattan. He urged Congress to act to avoid the so-called fiscal cliff of severe budget cuts and tax hikes in 2013. The Fed, he said, does not have the tools for a rescue that might be necessary if the economy goes off the cliff. Credit: Getty Images

Falling oil prices and a surprise announcement from Hewlett-Packard weighed on technology and energy stocks Tuesday.

HP plunged 11.95 percent after executives said that a company HP bought for nearly $10 billion last year lied about its finances. CEO Meg Whitman said that there were "serious accounting improprieties" at the search-engine company, Autonomy.

To account for it, HP took an $8.8 billion charge in its latest quarter. HP's stock lost $1.59 to $11.71.

A warning from Federal Reserve chairman Ben Bernanke about the dangers of the "fiscal cliff" also weighed on the market in afternoon trading. The Dow Jones industrial average dropped as much as 94 points shortly after Bernanke spoke.

But the stock market crept higher and ended the day flat. The Dow dropped 7.45 points to close at 12,788.51.

The Standard & Poor's 500 index gained 0.07 percent to 1,387.81. The Nasdaq composite index gained 0.02 percent to 2,916.68.

Energy stocks and the price of crude oil fell after the president of Egypt predicted that Israel's weeklong offensive in the Gaza Strip would end in hours and the Israeli prime minister said Israel would be a "willing partner" to a cease-fire. -- AP

Get the latest news and more great videos at NewsdayTV Credit: Newsday

Suozzi vs. Trump on 'slush fund' ... What's in store with the weather ... Let's Go: LIRR trip to nostalgic spots ... H.S. plays of the week ... What's up on LI ... Get the latest news and more great videos at NewsdayTV

Get the latest news and more great videos at NewsdayTV Credit: Newsday

Suozzi vs. Trump on 'slush fund' ... What's in store with the weather ... Let's Go: LIRR trip to nostalgic spots ... H.S. plays of the week ... What's up on LI ... Get the latest news and more great videos at NewsdayTV

SUBSCRIBE

Unlimited Digital AccessOnly 25¢for 6 months

ACT NOWSALE ENDS SOON | CANCEL ANYTIME