Saturday, 6 July 2013

C Aptitudes



What will be the output of the program?  

#include<stdio.h>
#include<string.h>
int main()
{
            char str1[20] = "Hello", str2[20] = " World";
            printf("%s\n", strcpy(str2, strcat(str1, str2)));
            return 0;
}

No comments:

Post a Comment