Skip to content

char array assigned string works, but shouldn't #38

Description

@derrell

This program prints "hll" but should err on line 6.

#include<stdio.h>intmain(intargc, char*argv[])
{
charstring[] ="hello";
string="hll";
printf("[%s]\n", string);
return0;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions