Write a program to print prime nums from 1-20 using c
programing?

Answer Posted / ritu

Write a program to generate the first n terms in the series --- 2,3,5,7,11,...,17

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between null pointer and void pointer.

661


write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.

14948


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

721


How can I direct output to the printer?

806


What is a example of a variable?

540






#include int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

1255


What does the error 'Null Pointer Assignment' mean and what causes this error?

732


Explain 'far' and 'near' pointers in c.

700


Hi can anyone tell what is a start up code?

1607


Explain how can I convert a number to a string?

636


What is methods in c?

635


What are the differences between Structures and Arrays?

601


I have a varargs function which accepts a float parameter?

572


What is the difference between single charater constant and string constant?

615


What are enumerated types?

644