• This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #67
    admin
    Keymaster
      
      
      #include <stdio.h>
      #include <cs50.h>
      int main(void)
      {
          string enterword = get_string("input");
          printf("enterword %s", enterword);
          
      }

      After taking input text that user enters, I intend to count no. of characters. Since initially the user enters string type, it appears that I need to convert string type to char type. After that, count no. of characters by a temporary counter variable.

      Help appreciated how to convert string type to character type.

       


      Reply


      https://edstem.org/us/courses/176/discussion/951606?comment=2159746[learn_press_profile]

    Viewing 1 post (of 1 total)
    • You must be logged in to reply to this topic.
    Scroll to Top