Calling scanf_s() with array of chars <p>I tried this code, but it is not working.</p> <pre><code>char word1[40]; printf("Enter text: \n"); scanf_s("%s", word1); printf("word1 = %s", word1); </code></pre> <p>When I execute it, it shows:</p> <blockquote> <pre><code>word1 = </code></pre> </blockquote>