How would you obtain the current time and difference between two times?
No Answer is Posted For this Question
Be the First to Post Answer
What is structure padding and packing in c?
the output will be #include<stdio.h> int main () { int i; i = 9/2; printf("%i",i); return 0; }
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.
What is the difference between void main and main in c?
Why does not c have an exponentiation operator?
What is function pointer c?
Write a program to find the number of times that a given word(i.e. a short string) occurs in a sentence (i.e. a long string!). Read data from standard input. The first line is a single word, which is followed by general text on the second line. Read both up to a newline character, and insert a terminating null before processing. Typical output should be: The word is "the". The sentence is "the cat sat on the mat". The word occurs 2 times.
Write a simple program to find the size of different basic data types in C.
How can a program be made to print the name of a source file where an error occurs?
How will you allocate memory to double a pointer?
What are the scope of static variables?
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....