How to printf a long long data type integer?

M

music4

Greetings,

I need to use a long long data type integer in my program, but how to print
it with printf() or an alternative? My platform is Solaris 2.7 32bit
operating system, and I use Sun Forte 6 C compiler.

Thanks in advance!
Evan
 
J

Jack Klein

Greetings,

I need to use a long long data type integer in my program, but how to print
it with printf() or an alternative? My platform is Solaris 2.7 32bit
operating system, and I use Sun Forte 6 C compiler.

Thanks in advance!
Evan

The conversion specifiers for long long include "%lld" "%llu" "%llx"
and so on.
 
M

music4

Jack,

Thank you so much. It solved my problem. By the way, where you get the
knowledge, I did never read them from any book.

Evan
 
C

CBFalconer

music4 said:
Thank you so much. It solved my problem. By the way, where you
get the knowledge, I did never read them from any book.

Probably from the C99 standard. Google for N869 for a free
version of the last draft.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top