Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
question_updated
  • Loading branch information
hmansh authored Oct 6, 2020
1 parent 03d4365 commit 4fa08aa
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Assignments from Computer Network Labs.


# LAB 5

1. Write a C program in TCP to send a message "Hello KIIT" from client to server. The server will display the message and then send a response message "Thank you" to the client. The client will display the response message.

2. Write a C program in TCP to send a string "Welcome to KIIT" to the server. The server will determine the number of vowels in the string and it will display them.
Expand All @@ -12,3 +13,45 @@ Assignments from Computer Network Labs.
4. Write a C program in TCP to send an integer array from client to server. On the server side, display the array and determine the sum of elements. This sum will be sent back to the client and display on the client side.

5. Write a C program in TCP to send an integer array from client to server. Display the array on the server machine and determine the second largest element of the array.

# LAB 4

1. Write a program to pass a string from client to server. Display the lower case message in the server. Further, convert the message from lower case to upper case and display the converted message in client side.

2. Write a program to pass a string from client to server. Display the string in server side. Further, find the reverse of the string and send the same to the client and display the reversed string in client side.

3. Write a program to pass an integer array from client to server and print the array in server side.

4. Write a program to pass an integer array from client to server. Determine the greatest element on the server side and print it in the client side.

# LAB 3

1. Write a C program in UDP to send a message from client to server device.

2. Write a C program in UDP to send a message from server to client device.

# LAB 2

1. Write a C program in UDP to create a socket and assign IP address and port number to the newly created socket using bind function

# LAB 1

1. Write a C program to swap the content of 2 variables using pointer.

2. Write a C program to assign values to each members of the following structure. Pass the populated structure to a function Using call-by address and print the value of each member of the structure with in that function.
struct info{
int roll_no;
char name[50];
float CGPA;
}

3. Write a C program to extract each byte from a given number and store them in separate character variables and print the content of those variables.

4. Write a C Program to enter a number and store the number across the following structure and print the content of each member of the structure. Then aggregate each member of the structure to form the original number and print the same.
struct pkt{
char ch1;
char ch2[2];
char ch3;
};

5.Write a C program to check whether the Host machine is in Little Endian or Big Endian. Enter a number, print the content of each byte location and Convert the Endianness of the same i.e. Little to Big Endian and vice-versa.

0 comments on commit 4fa08aa

Please sign in to comment.