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;
    }
Watch all videos like this

Leave a Reply

Your email address will not be published. Required fields are marked *