C Help
By
Guest
in Programming
in Programming
Go to solution
Solved by Guest,
Ah, so I need to call the function before I declare it? I'll try this.
your code should be like this:
#include <stdio.h> int compute(int a);int main() { int x = 10; int y = compute(20); printf("%d\n", y); return 0;} /// compute a value.int compute(int a) { return a * 5;}
-
Topics
-
kerriya ·
Posted in Cases and Mods3 -
octester ·
Posted in Troubleshooting4 -
DavidPatrascu ·
Posted in General Discussion6 -
2
-
2
-
bill well ·
Posted in Peripherals1 -
4
-
2
-
Ha-Satan ·
Posted in Networking3 -
1
-
-
play_circle_filled
Latest From ShortCircuit:
The coolest looking monitor. Period. - ASUS ROG display at Computex (Sponsored)

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now