How to produce Euro symbol in C?

Thi picture Thi · Jan 27, 2011 · Viewed 7.2k times · Source

Please give me a sample C program to produce the euro sysmbol. I'm using windows keyboard and program needs to be compiled in linux.

Update: Actually I need Euro symbol as a string and need to concatenate it with amount string.

I'm having Dell Latitude D620 laptop and tried using Alt+4, Alt+5, etc.. None of them prints the euro sysmbol.

Answer

Drakonite picture Drakonite · Jan 27, 2011

This is entirely character encoding specific.

This question should sum up why there is no straight answer to your question:

Hex representation of Euro Symbol €