Search:

Type: Posts; User: Mr.Lnx

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,947

    Yes you are right about strcpy ... if we put this...

    Yes you are right about strcpy ... if we put this statement ->



    strcpy(str1, strcpy(str2, "abcd"));

    into main() .... main is the caller of strcpy. Not strcpy itself . We simply call strcpy...
  2. Replies
    7
    Views
    1,947

    Strcpy function .

    Hello to all.

    According to documentation the code below produces undefined behaviour?




    #include<stdio.h>
    #include<string.h>
Results 1 to 2 of 2