Step 1: Understanding reaction of NaCl with concentrated H\(_2\)SO\(_4\).
When sodium chloride reacts with concentrated sulfuric acid, it undergoes acid-base displacement reaction. The stronger acid (H\(_2\)SO\(_4\)) displaces HCl from NaCl:
\[
NaCl + H_2SO_4 \rightarrow NaHSO_4 + HCl
\]
Thus, product formed is hydrogen chloride gas.
Step 2: Understanding reaction of NaNO\(_3\) with H\(_2\)SO\(_4\).
Sodium nitrate reacts with concentrated sulfuric acid to form nitric acid:
\[
NaNO_3 + H_2SO_4 \rightarrow NaHSO_4 + HNO_3
\]
Thus, product formed is nitric acid.
Step 3: Comparing both reactions.
First reaction produces HCl and second produces HNO\(_3\). These are typical acid displacement reactions involving a stronger acid.
Step 4: Final verification.
No redox change occurs; only proton exchange and acid formation take place.
Step 5: Final conclusion.
Hence, the products formed are HCl and HNO\(_3\).
Final Answer:
\[
\boxed{HCl,\ HNO_3}
\]