Write a client and server program in C language using UDP,
where client program interact with the Server as given
below:
i) The client begins by sending a request to send a
string of 8 characters or series of 7 numbers, the server
sends back a characters or numbers as per the request of
the client.
ii) In case of series of 7 numbers: The client sends a
multiplication of numbers, to the server.
iii) In case of a string of 8 characters: The client sends
a reverse order of string to the server..
iv) Server will send an acknowledgment to the client after
receiving the correct answer
No Answer is Posted For this Question
Be the First to Post Answer
In the below code, how do you modify the value 'a' and print in the function. You'll be allowed to add code only inside the called function. main() { int a=5; function(); // no parameters should be passed } function() { /* add code here to modify the value of and print here */ }
how the compiler treats any volatile variable?Explain with example.
How is null defined in c?
I use turbo C which allocates 2 bytes for integers and 4 bytes for long. I tried to declare array of size 500000 of long type using the following code... long *arr; arr=(long *)(malloc)(500000 * sizeof(long)); It gives a warning that "Conversion may lose significant digits in function main"... And the resulting array size was very less around 8400 as compared to 500000. Any suggestions will be welcomed....
What should malloc(0) do?
Write a program to generate the first n terms in the series --- 2,3,5,7,11,...,17
Can you mix old-style and new-style function syntax?
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
write a program that print itself even if the source file is deleted?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
Explain what is wrong with this program statement? Void = 10;
What is register variable in c language?