Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I print a bullet point in C?

Tags:

c

I want to print the following in C.

Tonight’s schedule is:
•   Pizza
•   Movie
•   ice cream

I do not know how to print the bullet point character.

like image 470
F.leon Avatar asked Jul 13 '16 12:07

F.leon


2 Answers

The code bellow can give you guide on this:

#include <stdio.h>

int main(int argc, char** argv)
{
  printf("Tonight’s schedule is: \u2022 Pizza \u2022 Movie \u2022 ice cream\n");
  return 0;
}
like image 92
sel-fish Avatar answered Oct 21 '22 03:10

sel-fish


• search for html number &#8226; This link declares "\u2022" as the C source code encoding.

like image 40
AsheraH Avatar answered Oct 21 '22 05:10

AsheraH