Write a program to find whether the given number is prime or
not?

Answer Posted / sivavendra

Hey sudha,
plz checkout the above code once again.....

if(i=2;i<=n/2;i++) --- What this code indicates?

Is This Answer Correct ?    8 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are header files and what are its uses in C programming?

642


What language is lisp written in?

626


Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

839


a c code by using memory allocation for add ,multiply of sprase matrixes

2306


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

661






What is difference between function overloading and operator overloading?

664


What is double pointer?

563


Is a pointer a kind of array?

602


write a program to create a sparse matrix using dynamic memory allocation.

4375


What is the use of header?

628


find out largest elemant of diagonalmatrix

1653


What is derived datatype in c?

641


1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.

1670


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

1912


What is dangling pointer in c?

629