how to implement the string handling functions. is it necessary to include any libraries. give example on string concatenation
main()
{
char a,b
a='A';
b='B';
strcat(b,a);
printf("a:%s b:%s",a,b);
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
chartype only holds a single character. To hold a string, you need an array of characters. In C, arrays are fixed in size, so the programmer must ensure that a character array has enough space to hold the string you want to put in it.