Page 1 of 1

a) Write a program to pass two numbers from main function to function foo, swap the numbers in a function foo and print

Posted: Tue Jul 12, 2022 8:04 am
by answerhappygod
A Write A Program To Pass Two Numbers From Main Function To Function Foo Swap The Numbers In A Function Foo And Print 1
A Write A Program To Pass Two Numbers From Main Function To Function Foo Swap The Numbers In A Function Foo And Print 1 (184.43 KiB) Viewed 135 times
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.