While ( x == true ) {
//some code
if ([insert exist condition here]){
x = false;
);
}
Pay attention that the exist condition can be satisfied somehow, or ur code will run forever
More Related Contents:
- How to pass arguments in __VA_ARGS to a 2d character array? [closed]
- C – list all files in current directory then move in directory above, list files, and so on until root directory is reached [closed]
- C/SDL – Segmentation fault when program run multiple times in succession [closed]
- (Function) Swaping two numbers in c
- Please help me out, i want to display the linked list, reverse it & display then again display it
- Which of these two methods returns the pointer to a structure member
- What does “static” mean in C?
- Is there a good Valgrind substitute for Windows?
- How to use sscanf in loops?
- What exactly is the array name in c?
- Does free(ptr) where ptr is NULL corrupt memory?
- How are floating point numbers stored in memory?
- C error: undefined reference to function, but it IS defined
- Get the current time in C [duplicate]
- How to detect a TCP socket disconnection (with C Berkeley socket)
- How to implement a timeout in read() function call?
- EOF in Windows command prompt doesn’t terminate input stream
- Calling a FORTRAN subroutine from C
- What are the useful GCC flags for C?
- Compound condition in C: if (0.0 < a < 1.0)
- Do threads have a distinct heap?
- Linking a C program directly with ld fails with undefined reference to `__libc_csu_fini`
- How is a CRC32 checksum calculated?
- Why does my compiler not accept fork(), despite my inclusion of ?
- How do you use offsetof() on a struct?
- How to check if a pointer is freed already in C?
- declaring variables without any data type in c
- Casting void pointers
- In C how do I print filename of file that is redirected as input in shell
- Detecting mismatched array enum initializers