Question: C language module c-2 (2.1) Write the program and copy the output too please! void printHeading O // No arguments, no return value printf (Add/Sub
C language
module c-2 (2.1)
Write the program and copy the output too please!


void printHeading O // No arguments, no return value printf ("Add/Sub demo: "); int add (int a, int b) // Two args, a return int c; c a b; return c; int sub (int a, int b) return a-b; int main (O int m, n; /7No parameters printHeading Q; //With direct values: printf ("5 + 6-%d ", add(5,6)); // Capturing the return: msub(6, 5); printf ("6-5-%d ", m) ; /With variables
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
