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
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
simple program of graphics and their output display
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
Do you know pointer in c?
Is it better to bitshift a value than to multiply by 2?
When should the const modifier be used?
How can you tell whether two strings are the same?
How do I copy files?
How can I send mail from within a c program?
What is p in text message?
What is identifiers in c with examples?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
Do pointers store the address of value or the actual value of a variable?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0