title: Passing string array's through methods in c#
body: <p>I'm very new to C#</p>
  <p>I'm trying to create code that takes input from a user and saves it in an array in the SignUp() method and then if I call the Profile() method it displays the personal information</p>
  <p>The error that occurs is when I try and call the Profile() method in the main line it says &quot;There is no argument given that corresponds to the required formal parameter 'privinfo' of Profile(string[])' &quot;</p>
  <pre><code>using System;
  
  namespace SDD_Assessment_2
  {
      class Program
      {
          static void Main(string[] args)
          {
              //SignUp();
              var privInfo = SignUp();
              Profile(privInfo);         
          }
  
          static string[] SignUp()
          {
              string[] privinfo = new string[4];
              Console.Write(&quot;First Name: &quot;);
              privinfo[0] = Console.ReadLine();
              Console.Write(&quot;Last Name: &quot;);
              privinfo[1] = Console.ReadLine();
              Console.Write(&quot;Email: &quot;);
              privinfo[2] = Console.ReadLine();
              Console.Write(&quot;Password: &quot;);
              privinfo[3] = Console.ReadLine();
              return privinfo;
          }
          static void Profile(string[] privinfo)
          {
              Console.WriteLine(&quot;Name: &quot; + privinfo[0] + &quot; &quot; + privinfo[1]);
              Console.WriteLine(&quot;Email: &quot; + privinfo[2]);
              Console.WriteLine(&quot;Password: &quot; + privinfo[3]);
          }
      }
  }
  </code></pre>