Docsity

Network Programming Lab Exercises: Swapping Values and Structure of Students, Exercises of Network Programming

Toggle sidebar
bg1
NETWORK PROGRAMING
LAB # 1
TASK #1
Make a program that swaps the values of integer type variables by calling a function
swap1 using two methods
. a) By value.
b) By reference.
TASK #2
Make a program that swaps two strings of character type by calling a function swap1.
Strings carry the names of the students then pass them to a function by reference.
TASK#3
Make a program that swaps two structures of students then pass there values to the
function by reference..
docsity.com

Partial preview of the text

Download Network Programming Lab Exercises: Swapping Values and Structure of Students and more Exercises Network Programming in PDF only on Docsity!

NETWORK PROGRAMING

LAB # 1

TASK

Make a program that swaps the values of integer type variables by calling a function swap1 using two methods . a) By value. b) By reference.

TASK

Make a program that swaps two strings of character type by calling a function swap1. Strings carry the names of the students then pass them to a function by reference.

TASK#

Make a program that swaps two structures of students then pass there values to the function by reference..

docsity.com