Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
1676Define a structure to store the record of library. The record must consist of at least following fields: Title, Author, Edition, Price, Publisher, and Category. -Define functions authorSearch ( ), TitleSearch ( ) and CategorySearch ( ) to search a book with respect to author, title and category. [There can be more than one book, written by one author, in one category]
2 4159
Explain the properties of union.
How do you write a program which produces its own source code as output?
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
What are the properties of union in c?
What is meant by preprocessor in c?
Explain what header files do I need in order to define the standard library functions I use?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
What header files do I need in order to define the standard library functions I use?
Is it possible to initialize a variable at the time it was declared?
Write a code to generate divisors of an integer?
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 check armstrong number in c?
What is the use of parallelize in spark?
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
Can the “if” function be used in comparing strings?