So if I have a function named numbers (),
it returns an value of 8 in the main ().
how do I store this number in an integer?
i.e
#include <iostream>
using namespace std;
int numbers () {
int value = 8;
return value;
}
int main () {
numbers();
*I want to store the returned value in another integer*
return EXIT_SUCESS;
}
it returns an value of 8 in the main ().
how do I store this number in an integer?
i.e
#include <iostream>
using namespace std;
int numbers () {
int value = 8;
return value;
}
int main () {
numbers();
*I want to store the returned value in another integer*
return EXIT_SUCESS;
}