Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

Command Expressions in Gnu C: What's the value of a loop? void!

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.13 sec, absolute service time: 0,21 sec 
edit mode |  history  | discussion
Error(s):
source_file.c: In function ‘foo’:
source_file.c:13:4: error: void value not ignored as it ought to be
    for (int i =0; i <100; i++) z = i * z;
    ^