" int i;
int ary[50];
for(i=0; i<50; i++);
printf("%d", ary[i]);"
The set of instructions won't be able to identify the iterations since there's no identifier in that set.
Type: Posts; User: KAUFMANN
" int i;
int ary[50];
for(i=0; i<50; i++);
printf("%d", ary[i]);"
The set of instructions won't be able to identify the iterations since there's no identifier in that set.
Oh there's a Manual alright. Thank you very much. That shall suffice.
Hi.
I've written a small program to compute very large numbers using the Collatz Conjecture. I have been told I should use the GMP library, so I downloaded the file, and there's a bunch of .c and...
Yes I know. I was changing the range around and didn't see that when I copied the code onto here. But it's irrelevant to the actual issue at hand.
Damn! I was afraid you were going to say that... I'll read it then. Thanks anyway.
Hello, I downloaded the gmp-5.0.2.tar.bz2 file from the GMP page but I can't make anything with what I found inside.
How can I use this math library to work with extremely large numbers in my...
If I want to use the unsigned long long, do I just write 'unsigned long long int var1,var2...'? Or do I need to change the %d as well? And do I need to #include something?
So if I want to use this long int, can I simply put 'long' before int followed by the variables or do I need to change anything else? Like the %d
*Hi there,
So there is this math conjecture which essentially says you can pick any positive integer, aply two rules and it shall always come to 1. The rules are, if the integer is even, divide it...
Silly me...
Thank you indeed!
I installed Ubuntu in my PC a while ago and only now have I started programming in C.
So, I did as instructed:
use gedit to write the code, save it in .c format, open the terminal, write
$cc...
OMG You're a freakin' genius! It totally worked :D Thank you so much. And to think that it was only a matter of puttin' there [i]+2 instead of [i+2]
I didn't know it made that much of a difference!...
Well, I have this message to decrypte the following way: each letter should be moved two rows ahead, so if we have ABC, the output should be CDE.
I've made the code, seems fine to me but doesn't...
Hello Community,
I wrote a small piece of code to print a fairly large number. Something along the lines of 30!++.
The problem is that what I get instead is a group of random numbers with no...
The error message reads: syntax error before "system".
Oh boy. That's got to be it. I forgot to write the while statement after the last do.
Thanks, I don't know how I missed that one.
...
Any number multiplied by its inverse is 1 since N*(1/N)=1 because the N's cancel on each other. Now, since 0 is the inverse of infinity, is it safe so assume that 0*infinity=1? Methinks so.
Android definitely. More free apps, open source, endless personalization, nicer desktops, full of widgets, unlike iPhone and so on.
Hello there. So I've completed the code to my little blackjack code and it seems correctly written, however, I haven't been able to run the code to see how it works because of an syntax error which I...
Thanks! That helped a lot. I thought I just needed to plug in the rand() function and the whole thing would just work. Thanks for addressing me to the FAQ.
Thanks. That works indeed.
Hello. So I set to write a simple Blackjack program, and what I have done so far (not the whole code) works fine except that the rand() function keeps giving out the same values over and over. So...
Oh I feel silly now. Thank you for your help, fella :)
Now, IS it possible to use the rand function within a range, say 0 and 100?
IS it possible to use the rand function within a range, say 0 and 100?
I see. It's not necessary since that restriction is already defined within the 'for' loop. I've removed it now, and it still doesn't output what it should. Maybe there's some screw up in the manner...
Very well. I read what you suggested and I agree. However, with the code now corrected in that way, the very same error pops up: Max:1 Pos:4
There's something more to it :|
#include <stdio.h>...
#include <stdio.h>
#define N 6
int main(void){
int i,k,v[N];
printf("Input the vector:\n");
for(i=0;i<N;i++){
printf("Element %d:",i+1);
...