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 / kap
it is not the correct answer because the range they asked 0-
1000 so need to to %1000. :-)
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
What is the purpose of the statement: strcat (S2, S1)?
What's the right way to use errno?
How can I swap two values without using a temporary?
How can I convert a number to a string?
What is a c token and types of c tokens?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
What is a #include preprocessor?
write a program that types this pattern: 12345678987654321 12345678 87654321 1234567 7654321 123456 654321 12345 54321 1234 4321 123 321 12 21 1 1
What's the best way of making my program efficient?
How can I handle floating-point exceptions gracefully?
Can an array be an Ivalue?
write a program for the normal snake games find in most of the mobiles.
Explain enumerated types in c language?
What are the types of assignment statements?