Computer Science, asked by snlchandra810, 1 year ago

What will be the output/error?(for input: 6,9) #include int fg(int, int) int main() { int n1, n2, g; scanf("%d%d", &n1, &n2); g=fg(n1,n2); printf("%d",g); }?

Answers

Answered by xtylishbabu
1

Answer:

What will be the output/error?(for input: 6,9) #include int fg(int, int) int main() { int n1, n2, g; scanf("%d%d", &n1, &n2); g=fg(n1,n2); printf("%d",g); }?

Explanation:

Answered by AskewTronics
0

This code will give error for any input

Explanation:

There are four errors in the above question code which are as follows---

  • The first error is in the header file, the line "#include" is incomplete because it is used to include the file but there is no file name after "#include" statement.
  • The second error is to include the semicolon at the fg() function prototype.
  • The third error is that there is no definition of fg() function and fg() function is called.
  • The fourth error is that there is no return statement in the main function but the definition of main function.

When the user remove this error then the code runs and gives correct output.

Learn More:

  • Definition of C Program: https://brainly.in/question/637147
  • c program: https://brainly.in/question/9996665
Similar questions