Hello everyone,
I had been working on my assignment to create a C program, I wrote out the whole things which about more than 200 lines and the coding words look like a pile of cluster spilled everywhere. I had found some error but it's quite confusing and time consuming on making it work.
So yeah, anyone had a very effective ways or steps to test out only a part or segments of the code easily? Like copy paste into new C file and run it?
Also, I would like to ask about passing the structure value to other function.
like this:
Code:
//assumed I had typedef structure with tag "Test"
function(Test info[]);
function2(Test info[]);
main()
{
Test info[10];
function(info);
}
function(Test info[])
{
function2(info);
}
Can I do this if I only want 1 structure to store all and change the values from function() and function2()?
So yeah, that's is my question.
any answer, tips or helps is appreciated.