We address the effect of stochastic resetting on diffusion and subdiffusion process. For diffusion we find that MSD relaxes to a constant only when the distribution of reset times possess finite mean and variance. This implies existence of steady state and we show that under resetting a Gaussian propagator converges to a Laplace distribution universally. For subdiffusion we derive the PDF in Laplace space for arbitrary resetting protocol. Resetting at constant rate allows evaluation of the PDF in terms of H-function. We analyze the steady state and derive the rate function governing the relaxation behavior. For a subdiffusive process the steady state could exist even if the distribution of reset times possesses only finite mean.