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

Three programming tasks for network programming lab #1. The tasks involve creating a program to swap the values of integer and string variables, as well as structures of students, using different methods: by value and by reference.

Typology: Exercises

2011/2012

Uploaded on 07/06/2012

duraid
duraid 🇮🇳

4.3

(3)

72 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

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