c language: printf help
        Posted  
        
            by dydx
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by dydx
        
        
        
        Published on 2010-03-27T15:09:01Z
        Indexed on 
            2010/03/27
            15:13 UTC
        
        
        Read the original article
        Hit count: 200
        
printf
Hi again, here is my coding which gives me the error 'warning: unknown conversion type character 0x20 in format'
int subtotal;
long long a,b,c,d,e,f,g,h,i,j,k,l,m;
subtotal = (1*(a+c+e+g+i+k))+(3*(b+d+f+h+j+l));
printf(" = %d % 10 = %d; (10 - %d) % 10 = %lld\n", subtotal,subtotal%10,subtotal%10,m);
any idea why this is wrong?
© Stack Overflow or respective owner