What is the purpose of this (void) in the following code:
Code:int functionA( structA *testresults, int test) { // Some code (void)testresults; // Some code }
What is the purpose of this (void) in the following code:
Code:int functionA( structA *testresults, int test) { // Some code (void)testresults; // Some code }
This is a null expression. The use of (void) there is an attempt to avoid a compiler warning... Not really necessary (because the expression is null, but valid).