In how much time you will write this c program?

Prime nos from 1 to 1000

Answers were Sorted based on User's Feedback



In how much time you will write this c program? Prime nos from 1 to 1000..

Answer / thunder

time taken for finding one prime is equal to finding 1 to 1000

Is This Answer Correct ?    1 Yes 2 No

In how much time you will write this c program? Prime nos from 1 to 1000..

Answer / payal

take time more than finding one prime

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More C Interview Questions

write a function to find whether a string is palindrome or not and how many palindrome this string contain?

2 Answers   Aptech,


convert 0.9375 to binary

2 Answers   CTS, TANCET,


For what purpose null pointer used?

0 Answers  


What is a buffer in c?

0 Answers  


Define 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 Answers  






how should functions be apportioned among source files?

0 Answers  


using only #include <stdio.h> and #include <stdlib.h> Write a program in C that will read an input from the user and print it back to the user if it is a palindrome. The string ends when it encounters a whitespace. The input string is at most 30 characters. Assume the string has no spaces and distinguish between and lowercase. So madam is a palindrome, but MadAm is not a palindrome. Use scanf and %s to read the string. Sample Test: Enter a string: madam madam is a palindrome. Enter a string: 09023 09023 is not a palindrome.

0 Answers  


a number is perfect if it is equal to the sum of its proper divisor.. 6 is perfect number coz its proper divisors are 1,2 and three.. and 1+2+3=6... a number is deficient if the sum of its proper divisor is less than the number.. sample: 8 is deficient, coz its proper divisors are 1,2 and 4, and 1+2+4=7. abundant number, if the sum of its proper divisor is greater than the number.. sample..12 is abundant coz 1+2+3+4+6=16 which is geater than 12. now write a program that prompts the user for a number, then determines whether the number is perfect,deficient and abundant..

1 Answers  


Convert the following expression to postfix and prefix (A+B) * (D-C)

3 Answers   Satyam,


what is the difference between getch() and getchar()?

10 Answers   Huawei, Infosys,


There are 8 billiard balls, and one of them is slightly heavier, but the only way to tell was by putting it on a weighing scale against another. What's the fewest number of times you'd have to use the scale to find the heavier ball?

5 Answers   Microsoft, TCS,


Are the outer parentheses in return statements really optional?

0 Answers  


Categories