Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 variablesStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started