title: Printing 2D array in C language using system ECHO command
body: <p>How do I execute the system command “echo” in a C program to print out all the elements in a 2D array? I tried it, but it didn't work.</p>
  
  <p>Input:</p>
  
  <pre><code>char myarray[1][10] = {"Hello", "World"};
  system("echo $myarray");
  </code></pre>
  
  <p>Expected Output:</p>
  
  <pre><code>Hello World
  </code></pre>
  
  <p>Currently I do not get any output whatsoever.</p>
  
  <p>Update 1 (constraints):
  I cannot allocate more memory – I can only use the myarray variable.
  I may use any other scalar or pointer variables.</p>