You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

   Description -

             A programmer should keep a check on the following (sub-sections):

                        - ‘n’ > size of ’p’                                                                                     // for func(p,n)

                        - ‘n’ and ‘p’ are not compatible

                        - ‘n’ > size of ‘p’ or size of ‘q’ || ‘p’ and ‘q’ are not compatible                     // for func(p,q, n)

                        - ‘p’ and ‘q’ are compatible but not with ‘n’

                        - Correct usage of expression E                                                              // for E: T* = mem_alloc(n)

 

Non-Compliant Code Example

            // NCCE example

   *Remember to follow the desired coding style

Compliant Solution

            // CS example

   *Remember to follow the desired coding style

 

Risk Assessment

 

Bibliography

  • No labels