The impact of U.S. President Donald Trump's decision to withdraw from the Paris climate agreement will differ for companies depending on what they produce and whether they have sales overseas.

Formally, it may take more than three years for the U.S. to exit, but Trump said last week that his administration will stop all work on the accord immediately.

A look at some key questions about the accord and Trump's decision.

DID THE ACCORD SET RULES FOR BUSINESSES?

No, the agreement let governments decide how to meet their national emissions-reduction promises.

BUT DID WE KNOW WHICH INDUSTRIES WOULD HAVE BEEN AFFECTED MOST?

Actions of the Obama administration drew a map. Obama-era regulations such as the Clean Power Plan targeted reductions from coal and methane leakage from natural gas drilling. It reiterated tough fuel-efficiency standards for automakers.

A study cited by Trump during his Rose Garden announcement predicted that the biggest decline in production would have been in the cement, coal and steel industries, with oil and gas also losing out. Critics dismissed many numbers in the study, which was commissioned by longtime opponents of environmental regulation, but the list of target industries was probably accurate.

WILL WITHDRAWING PROVE A BOON FOR ENERGY COMPANIES?

Leaving Paris, along with Trump's other moves to roll back regulations on oil and gas producers, could spur drilling. But if that leads to lower prices by extending the glut of crude, any gain might be temporary.

Jason Bordoff, an energy expert at Columbia University, said production "will be determined far more by market conditions, like the price of oil and gas, than by scrapping the Obama-era environmental regulations."

WHY DID BIG OIL COMPANIES WANT THE U.S. TO STAY IN THE ACCORD?

Exxon Mobil and Royal Dutch Shell said they favoured a predictable structure like the Paris agreement for regulating emissions. David Cherney, an energy expert at PA Consulting Group, said they also feared a backlash -- carbon tariffs or consumer boycotts -- in countries that are sticking with the accord.

The big oil companies sell natural gas -- Exxon is the biggest gas producer in the U.S. -- which could benefit if the Paris accord further curtails production of coal, a rival fuel for generating electricity.

WILL RENEWABLE ENERGY BE HURT BY TRUMP'S DECISION?

Renewables are small but growing percentage of the U.S. energy mix. The energy department predicts that nearly two-thirds of new power-generation capacity added this year will come from solar and wind. Renewables are now often competitive on price with fossil fuels.

Critics say Trump's move will cost the U.S. a chance to lead the world in developing clean technology. "The U.S. is not going to benefit from this as much as it could," said Christine Lins of REN21, a non-profit that promotes renewable energy.

But others believe that states will pick up the slack, and renewables will be fine.

Last week, New York Gov. Andrew Cuomo announced a plan to spend $1.5 billion to make renewables half the state's electricity supply by 2030. And in California, the state Senate voted to require all the state's electricity come from renewable energy by 2045 and to move up a 50 per cent goal by four years, to 2026.

WILL TRUMP FULFILL HIS CAMPAIGN PLEDGE TO BRING BACK COAL JOBS?

Robert Murray, the CEO of coal producer Murray Energy, said that by withdrawing, Trump was "saving coal jobs, and promoting low-cost, reliable electricity for Americans and the rest of the world."

By reducing regulations on coal, Trump will help the industry, but the effect will be muted because his deregulation agenda is also likely to boost production of natural gas. "To the extent that more natural gas comes out of the ground because of Trump policies, it's not good news for coal," said Kevin Book, an analyst at ClearView Energy Partners.

Coal's biggest problem, however, is the fracking revolution that has made natural gas abundant and cheap. Leaving the Paris accord and killing the Clean Power Plan won't change that, said James Van Nostrand, who directs an energy centre at West Virginia University.

"Maybe some coal plants won't be retired as quickly as they otherwise would have, but it's not going to bring coal jobs back," Van Nostrand said.

Just 51,000 Americans work as coal miners, down from 151,000 in 1987 and 85,000 in 2009. Coal mines are increasingly automated and don't need many workers. Trump last week trumpeted the opening of a new mine in Pennsylvania. That mine, however, will only employ 70 to 100 miners, according to the company.

Amy Myers Jaffe of the University of California, Davis, said if the U.S. funds research into so-called clean-coal technology like carbon capture it could create an export market for U.S. coal and the technology itself even as U.S. coal demand falls.

LOTS OF CORPORATE CEOs ENDORSED THE ACCORD; WERE ANY BUSINESS SECTORS SCARED?

Although some of America's best-known big companies supported the Paris deal, many small-business owners worried about the potential for higher energy bills and costly new environmental regulations. They cheered Trump's decision. Small businesses in the clean energy sector say they expect demand for their services to keep growing.

WILL COMPANIES KEEP THEIR OLD PROMISES TO LIMIT CARBON EMISSIONS?

Most say they will.

Walmart, which launched a program in April to remove one gigaton of emissions from its supply chain by 2030, said after Trump's announcement that its own commitment to renewable energy and lower emissions was good for business and the environment.

Citibank, which had urged Trump to keep the U.S. in the accord, said Friday that it would "remain very focused on our own efforts to protect the environment," including its commitment to finance $100 billion in clean energy, infrastructure and technology projects.

COULDN'T THE NEXT PRESIDENT JUST RECOMMIT THE U.S. TO THE AGREEMENT?

Yes, and that possibility is a strong reason for companies not to react hastily to Trump's decision. Companies weighing investments that will last two or three decades will have to consider whether Trump -- and presidential opposition to the Paris agreement-- will be gone in January 2021.