What is statement and branch coverage for this program?

Code
  1. #include<stdio.h>

  2. main()

  3. {

  4.     call add();

  5.     int NO1,NO2NO3

  6. }

  7. void add()

  8. {

  9.   scanf("%d",&NO1);

  10.   scanf("%d",&NO2);

  11.   NO3=sum(NO1,NO2);

  12.   printf("%d",NO3);

  13. }

  14. void sum(int x,int y)

  15. {

  16. return(x+y);

  17. }
Copyright GeekInterview.com

Showing Answers 1 - 1 of 1 Answers

naveen

  • Apr 10th, 2015
 

it will give error no3 is undeclared

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions