Can someone say where is the problem please | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can someone say where is the problem please

It is a C project about quadratic equations which calculate the roots but it i don't know why it doesn't work https://code.sololearn.com/cLpSlXrHA3g1/?ref=app

21st Jan 2022, 3:22 PM
Amateur
5 Answers
+ 3
int main() { solveQuad(); // remove void in calling here.. return 0; }
21st Jan 2022, 3:43 PM
Jayakrishna 🇮🇳
+ 2
Quoi Runtime thanks for your explanation
21st Jan 2022, 4:02 PM
Amateur
+ 1
Fatemeh 'void' is used to specify the return type only when declaring the function (or its prototype). It doesn't make sense to add it while calling the function.
21st Jan 2022, 3:57 PM
Œ ㅤ
Œ ㅤ - avatar
21st Jan 2022, 4:01 PM
Amateur
+ 1
You're welcome.. yes. in declaration, return type is needed but in calling just function with parameters are needed..
21st Jan 2022, 4:02 PM
Jayakrishna 🇮🇳