Search:

Type: Posts; User: CHurst

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    8,408

    Awesome!! Thanks!

    Awesome!! Thanks!
  2. Replies
    2
    Views
    8,408

    Loop printing arrays

    Hi everyone. I have the following little function:



    int main()
    {
    int counter;
    int array[9] = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };

    for( counter = 0; counter <= 8; counter++ ) {
  3. Replies
    3
    Views
    2,039

    Thanks a lot guys!

    Thanks a lot guys!
  4. Replies
    3
    Views
    2,039

    Function returning incorrect value

    I'm having a little trouble with this block of code:



    int sphere()
    {
    float radius_2, volume;

    printf( "Radius: " );
    scanf( "%f", &radius_2 );
  5. Replies
    2
    Views
    1,380

    Ahh.. thanks!

    Ahh.. thanks!
  6. Replies
    2
    Views
    1,380

    Negative value returned on unsigned int type

    While experimenting with different data types I noticed that when using all unsigned data types and performing a calculation resulting is a negative value, the computer still outputs the negative...
  7. Replies
    2
    Views
    1,604

    Thank you sir!

    Thank you sir!
  8. Replies
    2
    Views
    1,604

    Unable to calculate float values

    Hi.

    I'm very new to the C programming language. I am using "The C Programming Language (2nd Edition)" by Kernighan and Ritchie with the Apple Xcode IDE. I am trying to complete Exercise 1-4...
Results 1 to 8 of 8