[Solved] How do I fix compiler error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘{‘ token|”?
[ad_1] 1) You need a semicolon and the end of your prototype: float xc(float frequency, float capacitance); 2) Variable declarations don’t have “()” float f; float c; 3) arguments are separated by commas: capreac = xc(f, c); 4) argument names should match variable names: float xc(float frequency, float capacitance); { float answer; answer = (1.0/(2.0*pi*capacitance*frequency)); … Read more