Ah, you mean something like:
next = ((val/n)+1)*n;
do{
something();
}
while( ++val < next );
Type: Posts; User: trinitrotoluene
Ah, you mean something like:
next = ((val/n)+1)*n;
do{
something();
}
while( ++val < next );
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...
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...
That did the trick! Thanks alot. I guess, from reading this link, that I needed to declare it as 'long long int '.
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...