write a program to display all prime numbers


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

Post New Answer

More C Interview Questions

#include<stdio.h> int SumElement(int *,int); void main(void) { int x[10]; int i=10; for(;i;) { i--; *(x+i)=i; } printf("%d",SumElement(x,10)); } int SumElement(int array[],int size) { int i=0; float sum=0; for(;i<size;i++) sum+=array[i]; return sum; } output?

5 Answers   Ramco,


Write a function to find the area of a triangle whose length of three sides is given

2 Answers  


Why we use break in c?

0 Answers  


read the folllowing code # define MAX 100 # define MIN 100 .... .... if(x>MAX) x=1; else if(x<MIN) x=-1; x=50; if the initial value of x=200,what is the vlaue after executing this code? a.200 b.1 c.-1 d.50

4 Answers   TCS,


given the piece of code int a[50]; int *pa; pa=a; to access the 6th element of the array which of the following is incorrect? a.*(a+5) b.a[5] c.pa[5] d.*(*pa + 5)

6 Answers   amu, TCS,






write a program to find the sum of the array elements in c language?

24 Answers   ICT, Infosys, Wipro,


What is far pointer in c?

0 Answers  


What is variable and explain rules to declare variable in c?

0 Answers  


Please write me a program to print the first 50 prime numbers (NOT between the range 1 -50)

5 Answers   IBM, KJH,


What is the purpose of ftell?

0 Answers  


What is encapsulation?

2 Answers  


Is sizeof a keyword in c?

0 Answers  


Categories