how to printf ° in VC++

Hello experts,
This might be very easy question for someone.
I can do printf( "%c", 176) in linux to print °, but this does not work in windows.
Any idea?
Who is Participating?
rajeev_devinConnect With a Mentor Commented:
Do this printf( "%c", 248). It will print °.
lzha022Author Commented:
I found a strange problem. Previously i tried this on one machine:
for(int i=0; i<255;i++)
 printf("i=%d %c",i, i)

It did not print anything when i is greater than 128, but now i am trying it on a different machine, it is working fine.
Any idea?
Anyway you have answered my quetion, thanks.
All Courses

From novice to tech pro — start learning today.