Thread: What's wrong?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2015
    Posts
    130

    What's wrong?

    Hi, what's wrong with this code? I just followed the requirements of using strcat.
    Code:
    #include<stdio.h>
    #include<string.h>
    int main()
    {
        char arr2[]="I love mom";
        char arr3[]="45";
        strcat(arr2,arr3);
        printf("%s", arr2);
        return 0;
    }
    Last edited by Romyo2; 08-13-2015 at 07:53 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 11-14-2011, 06:35 PM
  2. New to C What Is wrong with this...
    By headshot119 in forum C++ Programming
    Replies: 18
    Last Post: 08-08-2009, 05:02 AM
  3. wrong wrong with my xor function?
    By Anddos in forum C++ Programming
    Replies: 5
    Last Post: 04-26-2009, 01:38 PM
  4. whats wrong with this? no errors but wrong result
    By InvariantLoop in forum C Programming
    Replies: 6
    Last Post: 01-28-2005, 12:48 AM
  5. Replies: 9
    Last Post: 07-15-2004, 03:30 PM