In a generated piece of c code I found something like this (edited):
#include <stdio.h>
int main() {
(void) (
{
int i = 1;
int y = 2;
printf("%d %d
", i,y);
}
);
return 0;
}
I believe I have never seen the construct (void) ( { CODE } )
before, nor am I able to figure out what the purpose might be.
So, what does this construct do?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…