Wal-Mart CEO: Big-box stores will probably change

While the retail giant Wal-Mart is still based around big-box stores, CEO Doug McMillon can foresee a time when they'll no longer be predominant.

"If they [customers] don't want stores we don't have to have stores, having said that I think we will have stores in the future, but it will change," he said.

McMillion's comments came in a conversation with Re/code co-founder Kara Swisher at the tech-centric Code Conference in southern California.

Read MoreGet full coverage of the Code Conference here

Doug McMillon, CEO of Wal-Mart.
Asa Mathat | Code Conference
Doug McMillon, CEO of Wal-Mart.

E-commerce, and the blurring of e-commerce with traditional retailing, will likely lead to smaller stores, with customers increasingly using stores as a pickup location.

As of now, 10% of the company's mobile sales happen in stores, he said.

McMillon also said that the company is "regularly" attacked by cyberhackers, though he declined to offer more details.

"We know how important it is and we are going to stay vigilant and head of it," he said.

He also said the company may eventually have 3D printing capabilities in stores so people can print parts and goods.


Latest Special Reports

  • Trading Nation

    Trader Nation is not simply about finding that next trade -- it is a place where traders trade better together.

  • Inside the market's biggest sectors with a look at the trends, companies and trades netting profits for investors.

  • CNBC 'Explains' the complicated economics of our world—from stocks and balance sheets, to trade and public policy.