It’s testing your understanding of C flow control. What you’re looking for is something like:
if (array[i] < 5) {i++; continue; } // increment, go back to while
if (array[i] > 10) break; // leave while
More Related Contents:
- Singly Linked List – Backward in C [closed]
- Environment COBOL, C, DB2 on Ubuntu [closed]
- how i can change this code from for loop to while loop in C program?
- “static const” vs “#define” vs “enum”
- Pointer arithmetic for void pointer in C
- Is 2d array a double pointer? [duplicate]
- What’s the point of malloc(0)?
- Assigning strings to arrays of characters
- How to reverse a singly linked list using only two pointers?
- Why is malloc not “using up” the memory on my computer?
- Returning local data from functions in C and C++ via pointer
- How do I get a specific range of numbers from rand()?
- Why are global variables always initialized to ‘0’, but not local variables? [duplicate]
- free char*: invalid next size (fast) [duplicate]
- Object oriented programming in C [duplicate]
- malloc(sizeof(int)) vs malloc(sizeof(int *)) vs (int *)malloc(sizeof(int))
- Difference between _Bool and bool types in C?
- Why can’t local variable be used in GNU C basic inline asm statements?
- How to implement a bitset in C?
- Simple swap function…why doesn’t this one swap?
- Why isn’t “k” incremented in the statement “m = ++i && ++j || ++k” when “++i&&++j” evaluates to true? [duplicate]
- dlopen from memory?
- How do I add a directory to C header include path?
- How to get file creation date in Linux?
- Redirect stdout to a file
- To the power of in C? [duplicate]
- Creating C formatted strings (not printing them)
- Variable declaration vs definition
- scanf not working. need to read double from console
- Can you bind() and connect() both ends of a UDP connection