illustrate the c grammer and pattern using the test case