How to write a code for random pick from 1-1000 numbers?
The output should contain the 10 numbers from the range
1-1000 which should pick randomly, ie ,for each time we run
the code we should get different outputs.
Answer Posted / sharan
if the randomize(); doesn't work
replace it with srand ((unsigned) time (NULL));
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is a const pointer in c?
What does node * mean?
Why do we use return in c?
How does free() know explain how much memory to release?
Can a variable be both static and volatile in c?
What is the use of bit field?
what do u mean by Direct access files? then can u explain about Direct Access Files?
What is malloc return c?
What is storage class?
Describe newline escape sequence with a sample program?
Can a variable be both const and volatile?
Are the outer parentheses in return statements really optional?
What is difference between far and near pointers?
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics
Explain what are the __date__ and __time__ preprocessor commands?