Solved

how to printf a long int

Posted on 2006-10-19
1
196 Views
Last Modified: 2012-05-07
hi! i try to print a long int by %d but i get a 0, not 45562 for example. how to fix it?
0
Comment
Question by:btocakci
1 Comment
 
LVL 16

Accepted Solution

by:
imladris earned 100 total points
ID: 17770429
Use %ld
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
In C, why can't I shift a 64-bit integer more than 32 bits? 13 250
How do I install gcc 4.8.4 on a Linux Ubuntu 14.04 machine? 5 1,967
valid enum? 6 75
Global Keyboard Hooks Blocked 4 81
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
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.

821 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