Write a program to accept a character & display its
corrosponding ASCII value & vice versa?
Answer Posted / nigus alene
#2 is correct.
| Is This Answer Correct ? | 10 Yes | 18 No |
Post New Answer View All Answers
What are integer variable, floating-point variable and character variable?
Explain what does the format %10.2 mean when included in a printf statement?
Explain what are reserved words?
What is the use of sizeof () in c?
What is c language used for?
How to compare array with pointer in c?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
Explain what are the __date__ and __time__ preprocessor commands?
The purpose of this exercise is to benchmark file writing and reading speed. This exercise is divided into two parts. a). Write a file character by character such that the total file size becomes approximately >10K. After writing close the file handler, open a new stream and read the file character by character. Record both times. Execute this exercise at least 4 times b). Create a buffer capable of storing 100 characters. Now after generating the characters, first store them in the buffer. Once the buffer is filled up, store all the elements in the file. Repeat the process until the total file size becomes approximately >10K.While reading read a while line, store it in buffer and once buffer gets filled up, display the whole buffer. Repeat the exercise at least 4 times with different size of buffer (50, 100, 150 …). Records the times. c). Do an analysis of the differences in times and submit it in class.
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
Explain how does free() know explain how much memory to release?
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
Do pointers take up memory?
What is void main () in c?