I am writing code in visual studio and facing error while compiling.
CodePudding user response:
incorrect quotation mark should be "
#include <stdio.h>
int main()
{
printf("Hello , i am learning c ");
return 0;
}
CodePudding user response:
There are multiple different characters that look like the double quote character "
The double quote character is what is needed at the start and end of literal strings such as your string Hello, I am learning C
You have used the similar looking but different characters “
and ”
This is usually due to copy and pasting the double quote characters from a website or a rich text formatted document (e.g. Word) rather than typing them from a keyboard. Try deleting them and replacing them with a keyboard press or copying and pasting from here: "