3. [2x2.5] a) Write a program to pass two numbers from main function to function foo, swap the numbers in a function foo

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

3. [2x2.5] a) Write a program to pass two numbers from main function to function foo, swap the numbers in a function foo

Post by answerhappygod »

3 2x2 5 A Write A Program To Pass Two Numbers From Main Function To Function Foo Swap The Numbers In A Function Foo 1
3 2x2 5 A Write A Program To Pass Two Numbers From Main Function To Function Foo Swap The Numbers In A Function Foo 1 (35.8 KiB) Viewed 110 times
3 2x2 5 A Write A Program To Pass Two Numbers From Main Function To Function Foo Swap The Numbers In A Function Foo 2
3 2x2 5 A Write A Program To Pass Two Numbers From Main Function To Function Foo Swap The Numbers In A Function Foo 2 (39.01 KiB) Viewed 110 times
3. [2x2.5] a) Write a program to pass two numbers from main function to function foo, swap the numbers in a function foo and print the swapped value in main function using call by value method. Note that you cannot use call by reference anywhere. b) Write a program input a structure employee with following elements: Struct emp { int empid; int salary; int add_pincode; }; The program would be able to print all those employees having salary more than 20000 and they live at pin code 144001.
3. [2x2.5] a) Write a program to pass two numbers from main function to function foo, swap the numbers in a function foo and print the swapped value in main function using call by value method. Note that you cannot use call by reference anywhere. b) Write a program input a structure employee with following elements: Struct emp { int empid; int salary; int add_pincode; }; The program would be able to print all those employees having salary more than 20000 and they live at pin code 144001. 3
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply