[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.c

Re: how to use "long" with printf

Seebs

2/8/2011 10:58:00 PM

On 2011-02-07, Ram Prasad <ramprasad.ap@gmail.com> wrote:
> I have a simple demo program that demonstates use of recursion ( on linux )
> The problem is that it does not work for "long" integers. I assume this is a problem with printf

No.

> I tried %l instead of %d but that doesnot print any integer.

Try %ld.

-s
--
Copyright 2010, all wrongs reversed. Peter Seebach / usenet-nospam@seebs.net
http://www.seeb... <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/...(Scientology) <-- get educated!
I am not speaking for my employer, although they do rent some of my opinions.