Exforsys
+ Reply to Thread
Results 1 to 3 of 3

Is Concatenation Possible

This is a discussion on Is Concatenation Possible within the C and C++ forums, part of the Programming Talk category; Can I use a strcat() function in C programming language to concatenate a string to a character constant. If I ...

  1. #1
    ashlee is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    108

    Is Concatenation Possible

    Can I use a strcat() function in C programming language to concatenate a string to a character constant. If I attempt to do that what will be the result?


  2. #2
    Rahulbatra is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    124
    strcat() is used only to concatenate two strings. So you cannot use that to concatenate a string to a character constant.


  3. #3
    Manyamanas is offline Member Array
    Join Date
    Dec 2010
    Answers
    32
    strcat() keyword is used to concatenate two strings but it is not used to concatenate two character...
    a string array is terminated by null character, which differentiate it with character array/....


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...