What does "(void)temp;" statement mean?
I was going through some code and came across a piece of code which was
like this:-
void func(int a)
{
int temp;
...
....
temp=a;
(void)temp;
}
What does the temp variable do here? If I compile it using -Wall option, I
do not get any compilation error or warning either. Please help me
understand this code style. Thanks.
No comments:
Post a Comment