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
Write a program in c to replace any vowel in a string with z?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
List out few of the applications that make use of Multilinked Structures?
Are c and c++ the same?
What is #line?
What is void c?
how to find anagram without using string functions using only loops in c programming
What is the use of function in c?
What are pointers?
write a program to generate address labels using structures?
Is r written in c?
What is the c value paradox and how is it explained?
How to create struct variables?
What are void pointers in c?