Search:

Type: Posts; User: Programmin9

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,210

    How does this for-while loop works?

    Ok, so I got the following code:




    int i,j=1;

    for(i=1; i<=3; i++){
    while(j <= i){
    printf("A");
  2. Thank you so much for choosing to spend part of...

    Thank you so much for choosing to spend part of your time in clearing these things up for me. I think I finally got it. :)
  3. Alright, now it's all much clearer to me! And...

    Alright, now it's all much clearer to me! And what about for (i=0; i<in_use ; ++i)? Is it incremented at the same time it is used as index as this part lists the array values arr[0]-arr[7]?
  4. In while loop will final value of i be 8 or 7? If...

    In while loop will final value of i be 8 or 7? If I type in 8 values then value of i will be 7 because for the first element i will be equal to 0. How will *dbl_sizep be equal to i (*dbl_sizep=i) if...
  5. Partially filled array and output variable

    Hi everyone. I've got example of partially filled array where two sizes of array are used, declared size and the actual size. What I'm confused about is the output variable *dbl_sizep. Is it pointer...
Results 1 to 5 of 5