Search:

Type: Posts; User: SCRIPT_KITTEH

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    1,208

    Hi all, for some reason I thought it would email...

    Hi all, for some reason I thought it would email me when this topic received replies, but it didn't, so I just now saw the replies & wanted to say thanks!
  2. Replies
    13
    Views
    1,208

    Array Lengths

    Hi all,

    Been quite some time since I've posted here or practiced C for that matter, but recently starting to get back into it.

    I was reading in a book I had about C that an array has at the...
  3. Replies
    2
    Views
    3,999

    Ohh, I see! That makes a lot more sense, thank...

    Ohh, I see! That makes a lot more sense, thank you!
  4. Replies
    2
    Views
    3,999

    Am I interpreting this correctly?

    Hi folks,

    I have an end of chapter question here, that I believe I have solved, but am not sure if I've understood the question correctly in the first place. What do you think this question is...
  5. Oh, wow, thank you for the detailed response! I...

    Oh, wow, thank you for the detailed response! I haven't made any programs or functions that would be advanced enough to warrant an entire "source tree," but I have a few input getting functions I...
  6. putting functions/headers in separate files

    Hi folks,

    I have just learned about how one can put functions and headers in different files from the main() function. I was wondering if there is a rule of thumb of when and when not to separate...
  7. Replies
    4
    Views
    1,011

    Yeah, I think I got it. The implied return was...

    Yeah, I think I got it. The implied return was never reached until n < 4 test failed, hence why that is the point it started "returning" back out :) Thank you!
  8. Replies
    4
    Views
    1,011

    Ohhh, I was not aware of void functions having an...

    Ohhh, I was not aware of void functions having an implied return. This is good to know! Thanks, anduril! I wish I could express my gratitude for y'all's help all the time in some way better than...
  9. Replies
    4
    Views
    1,011

    recursion

    Hi folks,

    As usual, reading about C, have hit a wall that I'm struggling to overcome, "recursion." As I understand it, it's like a function calling itself. This is the short program the author...
  10. Replies
    2
    Views
    1,144

    Ohhh, Thank you, Matticus! :D I see from your...

    Ohhh, Thank you, Matticus! :D I see from your link the idea is used in many programming languages, interesting.
  11. Replies
    2
    Views
    1,144

    strange expression

    Hi folks,

    In my reading of a book about C, in the chapter about functions, I've come across an expression that I don't understand, and was hoping someone could explain. First the author shows...
  12. Started to learn programming with C, recently started studying Python too

    Futurama Fry - not sure if c has taught me to think like a programmer or py
  13. Replies
    19
    Views
    1,716

    No problem, I'm pretty new at this too :redface:

    No problem, I'm pretty new at this too :redface:
  14. Replies
    19
    Views
    1,716

    if(scanf("%d", &num1) != 1) { get rid of bad...

    if(scanf("%d", &num1) != 1)
    {
    get rid of bad input
    }


    When scanf tries to read input, it "returns" the number of correctly read items. So scanf("%d", &num1) != 1 means, scanf did not...
  15. AHHH, I love you! :o Yeah, the commented part...

    AHHH, I love you! :o Yeah, the commented part was left over from something I was trying to fix the original problem, but adding those two lines into the get_int function did the trick! Thank you so...
  16. Can't figure out what's causing this

    Hi folks,

    A long time ago I posted a program that I made on this forum about conversions, and I was asking how it could be cleaned up. Several people suggested functions, but I wasn't...
  17. Replies
    4
    Views
    929

    Ahhh, the *stream*, not scanf... Thank you very...

    Ahhh, the *stream*, not scanf... Thank you very much!
  18. Thread: c

    by SCRIPT_KITTEH
    Replies
    10
    Views
    1,372

    Sorry, I meant at the OP. I found it kind of...

    Sorry, I meant at the OP. I found it kind of funny his making a forum post called "c" and commanding the reader to make a program :p
  19. Replies
    4
    Views
    929

    getting used to functions

    Hi folks,

    So In my studying of C I am starting to come across more programs with functions in them. I am more comfortable with them than I used to be, but I have a couple of questions about this...
  20. Thread: c

    by SCRIPT_KITTEH
    Replies
    10
    Views
    1,372

    dafuq :confused:

    dafuq :confused:
  21. @ Nominal, I follow you up to the last part. I...

    @ Nominal, I follow you up to the last part. I wasn't talking about the 1 being printed twice/increment thing there, I meant that if you *don"t* have the while(getchar()) != '\n' inside the outer...
  22. Thank you!!! It's much more clear now. It helps...

    Thank you!!! It's much more clear now. It helps me learn so much when y'all experts take me through the, sequence points ;), one bye one.
  23. That makes sense... Thank you. K, I'll try:...

    That makes sense... Thank you.


    K, I'll try:

    So first the getchar() function awaits the user to input something. If the input was not 'y', which would terminate the loop, then the if/else...
  24. Can you help me understand this program?

    Hi folks,

    I have here a program from one of my books about C and I want to verify that I am understanding correctly how it works. Here is the program:



    #include <stdio.h>
    int main(void)
    {...
  25. Replies
    7
    Views
    3,760

    Ha, good point. That did the trick! I had...

    Ha, good point.



    That did the trick! I had no idea you could do that. Thanks!
Results 1 to 25 of 74
Page 1 of 3 1 2 3