I'm a complete beginner who just commenced on the CS50 course through EDX. While tryin out the walkthrough lessons in the CS50 IDE (clou9), I'm getting the following warning
"TEST.C: In function ‘int main()’:
TEST.C:6:19: warning: deprecated conversion from string constant to ‘string {aka char*}’ [-Wwrite-strings]
string name = "David";"
The script is exactly the same as shown in the walkthrough section video but still getting this warning. For ready reference, code pasted below. I feel it mustbe some setting in the IDE since no error comes up while David runs this code in the video. Pls help.
The script given below for ready reference.
#include <cs50.h>
#include <stdio.h>
int main(void)
{
string name = "David";
printf("hello, %s\n", name);
}