#include<string.h> int main() { char *str1 = "string Literal"; const char *str2 = "string Literal"; char source[]="Sample string"; return 0; }
Standard input is empty
cc1: warnings being treated as errors prog.c: In function ‘main’: prog.c:9: error: passing argument 1 of ‘strcpy’ discards qualifiers from pointer target type
Standard output is empty