write a program to display all prime numbers
No Answer is Posted For this Question
Be the First to Post Answer
#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?
Write a function to find the area of a triangle whose length of three sides is given
Why we use break in c?
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
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)
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?
What is variable and explain rules to declare variable in c?
Please write me a program to print the first 50 prime numbers (NOT between the range 1 -50)
What is the purpose of ftell?
What is encapsulation?
Is sizeof a keyword in c?