KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Why am I getting this error: infinite.c:5:12: error: use of undeclared identifier 'true' while (true) { 1 error generated. make: *** [infinite] Error 1 ... when I try to compile this simple code for an infinite loop? #include <stdio.h> int main(void) { int x = 0; while (true) { printf("%i\n", x); } }
Tags (comma-separated)
Save Edits
Cancel