C++ Tutorial

Wednesday, 7 August 2013

Strcat

#include <iostream.h>
#include<stdio.h>
#include<conio.h>
#include <string.h>
int main ()
{
    clrscr();
    char str[80];
    strcpy(str,"Hello ");
    strcat(str,"I ");
    strcat(str,"Am ");
    strcat(str,"Mahi ");
    puts(str);
    getch();
    return 0;
}

Here Is The Output :)

 

Posted by MaHii Babariya at 22:08
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Posts

  • ▼  2013 (78)
    • ►  September (5)
    • ▼  August (26)
      • Character With Get() and Put()
      • String using write ♥♥♥
      • Overloading + Operator
      • Inheritance Example :)
      • Hybrid Inheritance :)
      • Strcat
      • Multiple Inheritance(6)
      • Constructor : Student Marks
      • Multiple Inheritance(5)
      • Write program of additon ♥♥♥
      • Name Return
      • Multiple Inheritance(4)
      • Multiple Inheritance(3)
      • Inheritance For Loop(2)
      • Inheritance For Loop(1)
      • Multiple Inheritance(2)
      • Multiple Inheritance :: Student Details
      • Multiplae Inheritance: Worker Details
      • Private Single Inheritance
      • Inheritance Example(3)
      • Constructor exp
      • Single Inheritance(2)
      • Single Inheritance: Public
      • Inheritance Example(2)
      • Inheritance example ♥
      • Randomize();
    • ►  July (47)
Picture Window theme. Powered by Blogger.