Search:

Type: Posts; User: Placebo

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. ah ok, thanks^^

    ah ok, thanks^^
  2. Just practice - has no other purpose.

    Just practice - has no other purpose.
  3. ah ok, but with NUL char yoou do not mean '\0',...

    ah ok,
    but with NUL char yoou do not mean '\0', since '\0' is also existing within every char-array at the end and hence also within
    every initialized string?
  4. Replies
    7
    Views
    3,700

    All right, thanks:)

    All right, thanks:)
  5. Building an own strlen_function as an exercise

    Hi!


    #include <stdio.h>

    int stringlen(char* field, int length) {
    int i = 0;


    while(field[i] != '\0') {
  6. Replies
    7
    Views
    3,700

    ...............

    ...............
  7. Replies
    7
    Views
    3,700

    Hi! Thanks for the reply - Im afraid I still do...

    Hi!
    Thanks for the reply - Im afraid I still do not fully get it.
  8. Replies
    7
    Views
    3,700

    referencing to array-values with pointers

    Hi!

    Im not sure why the following output of the following code is:
    2 15 6 8 10

    Code being:


    #include <stdio.h>
  9. About your hint regards to recursion - you have...

    About your hint regards to recursion - you have basically pinpointed well my general problem which I have with recursion:
    Even regards to the simplest, basic recursion-examples to illustrate things,...
  10. Printing out a number in reversed order by using recursion + side-question

    Hi!
    Printing out a number in reversed order, I was able to do interative:


    #include <stdio.h>

    int digits_reversed_iterative(int num) {
    int erg, reversed, digit, i;
  11. Replies
    4
    Views
    5,101

    Hey, oh indeed now it works. Thanks anyways for...

    Hey, oh indeed now it works.
    Thanks anyways for all the input and hints.
  12. Replies
    4
    Views
    5,101

    Why program does not enter else-cascade?

    Hi!

    When the user-input is 0, it should imo enter the else-cascade and print out " 1 1" ?
    But this does not happen - can anyone see why not?


    #include <stdio.h>#include <stdlib.h>
  13. I mean, it's not that I have not been trying to...

    I mean, it's not that I have not been trying to solve the given exercise (number-sequences) myself - then I have posted my results where I can see what the code does different than what I want it to...
  14. Somehow this thread does not bring me closer on...

    Somehow this thread does not bring me closer on topic tbh - I will try your exercise advice and the last one (pen and paper is anyways my default start), but can someone please concretely post here...
  15. Thanks salem! I will post in a bit my new code...

    Thanks salem!
    I will post in a bit my new code with the new adjustment (still cannot excel your given task before, fully).

    @christop:
    Thanks for the explantation - makes sense to me.
    The...
  16. Hey, I did put the relevant code in text using...

    Hey, I did put the relevant code in text using the CODE-tags - is this what you mean?
    The second code can be ignored.
  17. Hi! Thanks for your initial help. Before I...

    Hi!

    Thanks for your initial help.
    Before I try again to print out an X, I want to understand and finally execute your exercise (printing out the choosen sequence).

    I post here my first attempt...
  18. exercise: Print out the sign 'X' with the size depending on an input-value.

    Hi!

    I want to print out a 'X' with as many rows, as an input-value would have.
    This picture will describe hopefully better, what I want to do:

    Screenshot - 0781ad21c51043868573c8ecc3b4b448 -...
  19. Replies
    3
    Views
    1,602

    Thanks for the suggestions - I will take a look...

    Thanks for the suggestions - I will take a look and try to understand the sourcecode myself.
  20. Replies
    3
    Views
    1,602

    Why does my program not start?

    Hi!
    First of all, I know that my code in regard to solving the task (logic) is still wrong and I will deal with it afterwards.
    For now, I am stuck at the technical details, since my program is even...
  21. Thanks, helps a lot. Just did not imagine for an...

    Thanks, helps a lot.
    Just did not imagine for an unknown reason that expressions are getting executed when they appear within the brackets of a for-loop.
    But in hindsight, of course the expression...
  22. Ah, now I indeed got it - thanks a lot! Also,...

    Ah, now I indeed got it - thanks a lot!

    Also, thanks Salem for your hint.^^
  23. Hey, thanks a lot, your hint helped me out: ...

    Hey,

    thanks a lot, your hint helped me out:


    15701

    The problem is though that I do not understand why we must assign the value directly before the inner loop begins, i.e. directly before we...
  24. Can somebody explain to me what is happening here?

    Hi!

    Here is a small piece of code with the output:
    15699

    I do understand that given the 2nd initialization (i = 1) , the following condition is not true and hence the program leaves the loop...
  25. Turning a nested for loop into a nested while loop fails - why?

    Hi!

    As an exercise I would like to turn following nested for loop into a nested while loop:

    15696

    But somehow it does not work out the way I want it to and obviously after all iterations are...
Results 1 to 25 of 37
Page 1 of 2 1 2