strcat

#include <stdio.h>
#include <string.h>

int main() {
   char str1[100] = "This is ", str2[] = "A Name";

   // concatenates str1 and str2
   // the resultant string is stored in str1.
   strcat(str1, str2);

   puts(str1);
   puts(str2);

   return 0;
}

4.5
2
A-312 69370 points

                                    #include &lt;stdio.h&gt;
#include &lt;string.h&gt;
int main() {
   char str1[100] = &quot;This is &quot;, str2[] = &quot;programiz.com&quot;;

   // concatenates str1 and str2
   // the resultant string is stored in str1.
   strcat(str1, str2);

   puts(str1);
   puts(str2);

   return 0;
}

4.5 (2 Votes)
0
3.71
7
Awgiedawgie 440220 points

                                    const char * strstr( const char * fullString, const char * substring );    // C++ (&lt;cstring&gt;)
      char * strstr(       char * fullString,       char * substring );    // C (&lt;string.h&gt;)

3.71 (7 Votes)
0
4.25
4
Awgiedawgie 440220 points

                                    #include &lt;stdio.h&gt;
#include &lt;string.h&gt;

int main () {
   char src[50], dest[50];

   strcpy(src,  &quot;This is source&quot;);
   strcpy(dest, &quot;This is destination&quot;);

   strcat(dest, src);

   printf(&quot;Final destination string : |%s|&quot;, dest);
   
   return(0);
}

4.25 (4 Votes)
0
4.33
3
Phoenix Logan 186120 points

                                    #include &lt;stdio.h&gt;
#include &lt;string.h&gt;
int main() {
   char str1[100] = &quot;This is &quot;, str2[] = &quot;programiz.com&quot;;

   // concatenates str1 and str2
   // the resultant string is stored in str1.
   strcat(str1, str2);

   puts(str1);
   puts(str2);

   return 0;
}

4.33 (3 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
strcat function in c example function str in c function of strcat in c c strstr with string string strcat in c stract function in c what does strstr function do in c strcat with values c strcat i c strcat in c. use strcat in c !strstr( strcat function definition in c strstr syntax c language string strstr function what is strcat in c example strcat c str function in c strinit function in c strcat in c programming strtr strstr function strstr() function in c strstr definition how strcat works in c what does strcat do in c strcat c function implementation of strcat function in c how to strcase in c use of strcat in c strappend C strstr() strstr' strcat. strtol strlen function in c strcat example what does strcat in c do strstr char strstr( c strstr using strcat c fonction strstr en c strcat() in c la fonction strstr strcon c what is strcat doing .st strstr c strstr in cc st st. strpos in cpp strcat string.h what is the function of fflush stdin in c STDERR strrev in c strstr strchr strstr function in c strcat( function strcat() strcat en c c program strcat how to use strcat in file c program strcat in file c program strcat function strstr in c stringcat in c how does strcat work whats strcat c strcat funtion in c strcat() str cat in c strcat in c strcat syntax in c how does strcat work in c c strcat how to use strcat in c strcat in c strcat c strcat strcat example c strcat function in c strcat c example strcat in c examples strcat() function in c strcat in c example strcat string string strcat function in c
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source