KodeGod.com

046. Technical interview question: Give the output of following code

 
int main()
    {
        char *str = "x";
        char c = 'x';
        char arr[1];
        arr[0] = c;
        printf("%d %d", strlen(str), strlen(arr));
        return 0;
    }