Search:

Type: Posts; User: trinitrotoluene

Search: Search took 0.00 seconds.

  1. Ah, you mean something like: ...

    Ah, you mean something like:


    next = ((val/n)+1)*n;
    do{
    something();
    }
    while( ++val < next );
  2. Finding next largest integer multiple

    Hi all. I recently stumbled across the following code:


    do
    {
    some_operation();
    } while (++val & 7);


    What this (supposedly??) does is continuously call some_operation and increment...
  3. Replies
    10
    Views
    92,421

    You're absolutely correct! Sorry, itsme86, I...

    You're absolutely correct! Sorry, itsme86, I jumped the gun when I thought that your solution fixed the problem. It didn't :( . I was still getting weird output like

    but changing the printf...
  4. Replies
    10
    Views
    92,421

    That did the trick! Thanks alot. I guess, from...

    That did the trick! Thanks alot. I guess, from reading this link, that I needed to declare it as 'long long int '.
  5. Replies
    10
    Views
    92,421

    Displaying a 'long long' with printf

    Hi all - I am having some difficulty displaying a variable of type 'long long' with printf(). My code is as follows:



    /* File: largenum.c */
    #include <stdio.h>

    int main(int argc, char...
Results 1 to 5 of 5