Below you can see the front-view size comparison of the Nikon D3300 and Canon 4000D. The Nikon D3300 is clearly the smaller of the two cameras. Its body is 5mm narrower, 4 mm shorter and 1 mm thinner than the Canon 4000D.
The chart below depicts how two cameras compare with average dimensions of the cameras in their class.