We prove the nonvanishing lemma for explicit second kind Padé approximations to generalized hypergeometric and q-hypergeometric functions. The proof is based on an evaluation of a generalized Vandermonde determinant. Also, some immediate applications to the Diophantine approximation is given in the form of sharp linear independence measures for hypergeometric E- and G-functions in algebraic number fields with different valuations.