2081.2 2

C Programming2081.210 marksCall by reference for swapping

When do we need external function?Illustrate the process of swapping the value of two variables using the concept of pass by value and pass by reference.[3+7]

When do we need external function?Illustrate the process of swapping the value of two variables using the concept of pass by value and pass by reference.[3+7]

--- We need external functions in the following situations: 1. Code Reusability: When the same block of code needs to be used in multiple programs or multiple source files, we define it as an external function so it can be called from anywhere without rewriting. 2. Large Program Management: When ...

Up nextDifferentiate between fgets() and fgetc(). What is the task of typedef? Write a program to