mattias1975
Programmer
I have some questions.
Which of these two is the best design?
Ex 1.
int main()
{
int a = function1();
function2(a);
}
function1(){
int a;
.......
return a;
}
Ex 2.
int main()
{
function1();
}
function1(){
int a;
function2(a);
}
Are there any designpaterns or any standard designrules for non objectoriented language like c?
Which of these two is the best design?
Ex 1.
int main()
{
int a = function1();
function2(a);
}
function1(){
int a;
.......
return a;
}
Ex 2.
int main()
{
function1();
}
function1(){
int a;
function2(a);
}
Are there any designpaterns or any standard designrules for non objectoriented language like c?