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.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

write a program to print calender using for loop.

1 Answers   HCL, TCS,


Is c++ based on c?

0 Answers  


Explain how can I convert a string to a number?

0 Answers  


Explain the difference between null pointer and void pointer.

0 Answers   TCS,


write a c programs to do multiplication of two numbers with out using arithmatic operator ??????????

7 Answers   Infosys, TCS,






Should a function contain a return statement if it does not return a value?

0 Answers  


Why do we use int main?

0 Answers  


write a fuction for accepting and replacing lowercase letter to'Z' with out using inline function.

5 Answers   Temenos,


int a[3][5]={ {1,2,3,4,5],{2,3,4,5,6},{10,11,12,13,14}}; int *p=&a; printf(ā€œ%dā€,*(*(x+1)+3));

2 Answers   Wipro,


Diff: between this 2 classes in terms of memory class A { int i; char c; double d; }; class A { double d; int i; char c; }; How it is calculating?

1 Answers   HCL,


What are the various types of control structures in programming?

0 Answers  


What is the size of a union variable?

0 Answers  


Categories