Help with C function call
Posted on 2006-06-27
I have a quick question while trying to learn C programming from Sams Teach Yourself C Programming in 21 Days.
I'm trying to call a straightforward print function to main, and have the function print data in a certain pattern. I need a little guidance on how to print the following pattern:
I understand how to do the function prototyping OK. I have defined the function as:
Now, is the best approach to use a \n somewhere in the function call, like this:
stop(), stop(), stop(); \n
stop(), stop(); \n
Or to simply put the \n in the function definition, like this:
If the above is right (which I think is the case), how do I call this function to produce the pattern above?
Please respond as soon as possible.
Thanks for your help.