£ sign in a printf function

Posted on 2006-11-21
Last Modified: 2010-04-15

I was wondering if anyone could explain to me how to print a £ sign in a printf statement.
The £ sign is not in the ASCII table so just entering.


will not work it prints a u with a line above it. (Cant find the character)

So i was wondering if there were other ways.  Any help would be appreciated.


Peter Allsop
Question by:peterallsop
  • 2
  • 2
LVL 33

Accepted Solution

hongjun earned 250 total points
ID: 17987795
Try this

printf("%c", (char)156);

Author Comment

ID: 17987929
Thanks very much for the quick reply.
This works  

Which charicter table is that using so i can use it again for future reference?
LVL 33

Expert Comment

ID: 17988131

Author Comment

ID: 17988269
thanks very much for the help

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now