write a program to find the largest and second largest
integer from an array
Answer Posted / mahesh
use bubble sort next to this, print last n second from last..
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Why doesn't C support function overloading?
What is pointer & why it is used?
Should I learn data structures in c or python?
What is volatile variable in c with example?
Explain the use of fflush() function?
What are identifiers in c?
Can we assign string to char pointer?
Explain how can you check to see whether a symbol is defined?
Why can’t we compare structures?
What is the function of this pointer?
What are the different properties of variable number of arguments?
What is string constants?
Explain what is a pragma?
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
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