Re: question




"Default User" <defaultuserbr@xxxxxxxxx> wrote in message
news:5uu12lF1jkadiU1@xxxxxxxxxxxxxxxxxxxxx
Bill Cunningham wrote:


Your code clearly writes data of the same length as 512 ints. How
many bytes are there in an int in this implementation?

Not sure. HOw would I find out like this maybe?

printf(sizeof(int));
puts(sizeof(int));

Would these work? I guess I could try these. Maybe the OS calls a
bock size 2048 bytes.

Come on man. Look stuff up. I told you before, you're wasting our time
and yours.



Brian

Oh I got it I remember "The first argument printf wants is a string"

Bill


.



Relevant Pages

  • Re: viewing mbr os descriptor
    ... unsigned int so maybe 2 but more likely 4 bytes. ... but using printf() correctly is a bit complicated. ... with understanding how to build a format string correctly. ... printfreally matches the format specifiers in the format ...
    (comp.programming)
  • Re: c & time problem
    ... As I understand it the "ctime" function returns a string. ... int main ... claim ints are16-bit on your platform. ... You then tell printf() to print an int ...
    (comp.lang.c)
  • Re: How to convert from a string to an expression?
    ... that will return the string that would have been printed by printf(). ... to be int -- and there's no simple way to represent a type at runtime. ... unsigned long var, *ptmp, sink; ...
    (comp.lang.c)
  • Re: why the printf is not typecasting the int to float
    ... The compiler sees as arguments a string and an int. ... The usual promotion rules for arguments call for no promotion. ... The "%f" is part of a string interpreted by the printf function and is meaningless as far as compilation is concerned except as chars in a string. ...
    (comp.lang.c)
  • Re: How do I print a 0 in the beginning?
    ... int main ... I have tried using %06d, %.5i, %.5d in the printf statement. ... Scanf's "%i" format expects a string in the same format expected by ... If you only want decimal input, ...
    (comp.lang.c)