Bug #15976 2009-07-08 07:29

ahocat

printf long long type

In Code::Blocks with MinGW (Windows XP SP3)

It seems strange when the function printf() has "long long int" type arguments.

It's the test code below:

//code start

#include <stdio.h>

int main()

{

long long n = 1234567890;

char *s = "hello";

printf("%s %lld\n", s, n);

printf("%lld %s\n", n, s);

return 0;

}

//code end

It's the result below, the second printf() is wrong:

hello 1234567890

1234567890 (null)

Category
Compiler
Group
 
Status
Closed
Close date
2009-08-09 05:06
Assigned to
biplab
biplab 2009-08-09 05:06

This is a compiler related issue. Please check with MinGW-help mailing list.