Saturday, April 24, 2010

Will it work?

int main()
return 0;


Yes ,it will definitely work.  and display output as!
*. strcat function concatenate the two string.

  • strcat(string,"!"); will work because ! is enclosed within double quotes and it is considered as string.
  • strcat(string,'!'); will not work because ! is enclosed within the single quotes,it is considered as character.


its compiler dependent. Ideally strcat supposes that destination string should be large enough to hold the combined output. Failing which it may(will) lead to seg-fault.

You are a very specialized blogger. I have joined your feed about Yes ,it will definitely work and display output as and look forward more of your outstanding blog posts,
dissertation writing

Post a Comment