how to write test case for c program

Sowmiya Sekar
Sowmiya Sekar used Ask the Experts™
How to write test case for c program
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
IT / Software Engineering Consultant
Top Expert 2016
Not sure what you are asking?

Test cases are typically based on what the program does, and what the requirements were.  Test cases need to be created where a set of input data to the program is identified, and the expected outcome is also determined.  Then the program is run using the sample input, and the output is compared to the expected output to determine if that test case succeeded.  Based on the complexity of the program many test cases may be need to test all aspects of the program.


Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial