For convergent Riemann sums of $f \in C^1([0,1])$ there is the property:
$$\tag{A}\lim_{n \to + \infty} \left[\, \sum_{k=0}^{n} f \left( \frac{k}{n+1} \right) - \sum_{k=0}^{n-1} f \left( \frac{k}{n} \right) \, \right] = \int_0^1 f (x) \ dx$$
Proof using the mean value theorem goes like
$$\, \sum_{k=0}^{n} f \left( \frac{k}{n+1} \right) - \sum_{k=0}^{n-1} f \left( \frac{k}{n} \right) = f \left( \frac{n}{n+1} \right) + \sum_{k=0}^{n-1}f'(\theta_k)\left(\frac{k}{n+1} - \frac{k}{n} \right)$$ and then shows the right side converges to $f(1) - \int_0^1 xf'(x) dx = \int_0^1f(x)dx.$ So it is very helpful that $f \in C^1$.
If we only have $f \in C[0,1]$, then equation (A) may not be true, and this was shown by Daniel Fischer using Banach-Steinhaus theorem in this answer. Here a related statement was considered:
$$\tag{B}\lim_{n\to\infty}\left[\, \sum_{k=0}^{n-1} f\left(\frac{k}{n}\right) - n\int_0^1 f(x)\,dx\, \right] = \frac{f(0) - f(1)}{2}$$
My question: Can someone please show me a concrete counterexample, i.e., a continuous but not continuously differentiable function where (A) or (B) is false?