Skip to content
Snippets Groups Projects
Select Git revision
  • 410ad8911b9674d4100c1504aec0158cdd8e844a
  • main default protected
2 results

tictactoe.py

Blame
  • string-ops-6.c 438 B
    #include <stdio.h>
    #include <string.h>
    
    int main (void)
    {
      char *anton = "Anton";
      char *zacharias = "Zacharias";
    
      printf ("%d\n", strcmp (anton, zacharias));
      printf ("%d\n", strcmp (zacharias, anton));
      printf ("%d\n", strcmp (anton, anton));
    
      if (anton == anton)
        printf ("gleich\n");
      else
        printf ("ungleich\n");
    /*
      char buffer[100] = "Huber ";
      strcat (buffer, anton);
      printf ("%s\n", buffer);
    */
    
      return 0;
    }