:: Home Page
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   Errors
   Testimonials Refer this Site  Refer This Site to Your Friends  Site Map  Contact Us      
Categories >> Software >> Programming Languages >> C


Question write the program for prime numbers?
 Question Asked In Companies :: Accenture, Aptech, Infosys, TCS,     < I also faced this Question! >
 Question Submitted By :: aaaa
  Answer Posted By  

int main()
int c,i,n;
if (n%i==0)
else printf ("not a prime");

Is This Answer Correct ?    110 Yes 89 No

View All Answers
Please Help Members By Posting Answers For Below Questions
 Question Views   Select
write a program to print largest number of each row of a 2D array 768
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create. 414
how can use subset in c program and give more example 378
what is the significance of static storage class specifier? 492
Please send me WIPRO technical question to my mail ID.. its please its urgent 425
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format. 139
ATM machine and railway reservation class/object diagram 3531
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record 2255
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code 430
what is use of malloc and calloc? 258
Write a program that accept anumber in words 73
what is the height of tree if leaf node is at level 3. please explain 470
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a<b,printb.find the sum digits of that number & then print.if a==b multiply 10 with a & add 20 with b store in c and then print 281
what is stack , heap ,code segment,and data segment 1048
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain..... 336
E-Mail New Answers        Answer Selected Questions