title: How to pass char as function argument in class?
body: <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  class X{
      private:
          char ime[50];
      X(char *c){ // or char (char c[]) which one to use?
          // how to set the value of c inside the ime[50];
      }
  };
  
  int main()
  {
  
      return 0;
  }
  </code></pre>
  
  <p>I want to pass a char as a function argument inside the constructor of a Class, so I can use two ways.. which one do I use? And once the value is passed, how do I put the value of c inside the char ime[50] variable of the class?</p>