tags:

views:

520

answers:

4

Hi,

I get an upside down question mark as an output from of of my function, what does it mean exactly?

+5  A: 

If it's not at all what you're expecting, it may be something to do with the encoding which your terminal is using, and your program attempting to output text in an encoding which doesn't match. What did you expect to see from your program?

Tim
+3  A: 

It does not mean anything special in C. Your function will only output what you program it to do, so if it is not outputting what you expect, you have a bug; simple as that.

Clifford
+4  A: 

That is a Punto de Interogación Inicial. It is used in Spanish to indicate the beginning of a question. In English, questions are easier to identify while reading because word order is often changed for questions. In Spanish that is not the case.

Nosredna
-1. While it's true that the OP's question lacks sufficient detail, this is not a useful answer and smacks of condescension.
BipedalShark
+1 technically correct - the best kind of correct :-)
Wim Coenen
Well, also in Italian we don't change the word order, but we don't have that punctuation sign...
klez
I will delete if OP clarifies that I did not answer what he meant to ask.
Nosredna
@klez, Interesting. This is what I learned in Spanish class. You may consider adopting this convention in Italian. :-)
Nosredna
+3  A: 

Do you expect 168 as the result by any chance? It's the Extended-ASCII code of the upside-down question mark.

Grzegorz Oledzki
The ASCII standard has only 128 characters, as it needed to be compatible with 7 bit systems. Maybe you mean ISO-8859-1 aka "latin-1"?
Wim Coenen
He could well have meant the extended ASCII code (a precursor to the ISO standard 8bit encoding which is common today): http://en.wikipedia.org/wiki/Extended_ASCII
Suppressingfire
@Suprresingfire: That's right.
Grzegorz Oledzki
@wcoenen: I believe it's 191 in ISO-8859-1, isn't it? "Extended ASCII" is common way to refer to character sets that filled in the 128-255 range. And it's 168 in that set.
Nosredna
"Extended ASCII" does not define any particular encoding at all, it is just a name for the entire set of 8-bit character sets where the meaning of the first 128 code points is the same as ASCII. So there is no "Extended-ASCII code of the upside down question mark".
caf