2

I know L prefix indicates a string literal.

This code

#include <stdio.h>

int main()
{
    printf("%ls", L"abc");
    return 0;
}

prints the string literal "abc" verbatim while the following code

printf("%ls", L"αβγ");

gives nothing, although simple string

printf("αβγ");

can be displayed well, why is that?

JJJohn
  • 915
  • 8
  • 26
  • 1
    `L"..."` denotes a `wchar_t[]`, not specifically a string literal... `"..."` is also a string literal, though typed `char[]` – Attie Nov 21 '21 at 22:29

0 Answers0