Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / abhradeep chatterjee

the above answer is correct.

Is This Answer Correct ?    3 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }

1418


Explain what is the benefit of using const for declaring constants?

1012


How the c program is executed?

1139


How many header files are in c?

1017


What are the different types of objects used in c?

1018


Can a file other than a .h file be included with #include?

1153


A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers

1167


Explain a pre-processor and its advantages.

1120


What is function in c with example?

1134


How can you access memory located at a certain address?

1100


What is the difference between constant pointer and constant variable?

1203


Explain what header files do I need in order to define the standard library functions I use?

1157


Can the curly brackets { } be used to enclose a single line of code?

1153


What does typeof return in c?

1076


Why structure is used in c?

1174