CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions
Interview Success Kit - Get Success in Job Interviews Interview Success Kit - 30,000 Interview Que. & Ans.
Covers 30,000+ Interview Questions asked in actual MNC Interviews - all with model answers.

Sponsored Links

Interview Questions
Our Services

INTERVIEW QUESTIONS C FUNCTIONS IN C DETAILS
Question :
How would you use the functions randomize()and random()?
Category Functions in C Interview Questions
Rating (3.8) By 53 users
Added on 5/20/2013
Views 802
Rate it!


Answers:

Source: CoolInterview.com


Source: CoolInterview.com



Source: CoolInterview.com

Use randomize() at first to change the values generated by each time the random() is run later.
Source: CoolInterview.com



Posted by: Sanjay Pathak

Contact Sanjay Pathak Contact Sanjay Pathak

Source: CoolInterview.com

Random() returns a random number between 0 and (num-1).random(num) is a macro defined in stdlib.h

Randomize() initializes the random number generator with a random value.Because randomize is implemented as a macro that calls the time function protyped in time.h,you should include time.h when you use this routine.
Source: CoolInterview.com



Posted by: Anu

Contact Anu Contact Anu

Source: CoolInterview.com

Random generates a random no..randomize()initializes random no. generation with a random value based on time,...
Source: CoolInterview.com



Posted by: Dalima

Contact Dalima Contact Dalima

If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification Enter the above shown code: *
    Inform me about updated answers to this question

    Related Questions
    View Answer
    How would you use the functions randomize()and random()?
    View Answer
    what is the difference between the functions rand(),random(),srand() and randomize()?
    View Answer
    Can you use the function fprintf()to display the output on the screen?
    View Answer
    How to see return value of main function?
    View Answer
    How to write a program in c to print its own code?
    View Answer
    What is the function of c?
    View Answer
    1. what is a difference between printf and cout . and why printf called a function and cout object as both are used to print data?

    View Answer
    How to print a statement without using printf() in c?
    View Answer
    Write a Program to convert decimal to binary no.
    View Answer
    What is the output of
    void main()
    {
    int a = (1,2,3);
    printf("%d",a);
    }

    with reason.
    View Answer
    code To draw a three dimensional graph using c graphics
    View Answer
    What is meant by malloc function
    View Answer
    How do we get Square root of any number Without using sqrt() function?

    View Answer
    What are returned by printf(), scanf() functions,if they return anything means what are that?

    View Answer
    Have you heard of "mutable" keyword?

    View Answer
    What is the purpose of main( ) function?

    View Answer
    Is using exit() the same as using return?


    View Answer
    Is it possible to execute code even after the program exits the main() function?


    View Answer
    What is a static function?


    View Answer
    Difference between Funtion to pointer and pointer to function

    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL Functions in C Interview Questions & Answers

    User Options
    India News Network

    Latest 20 Questions
    What is Yield to Maturity in Futures and Options Trading Market?
    What is Yield Curve in Futures and Options Trading Market?
    Who is a Writer in Futures and Options Trading Market?
    What is Wire House in Futures and Options Trading Market?
    What is Warehouse Receipt in Futures and Options Trading Market?
    What is Vertical Spread in Futures and Options Trading Market?
    What is Variable Limit in Futures and Options Trading Market?
    What is Underlying Security in Futures and Options Trading Market?
    What is Underlying Futures Contract in Futures and Options Trading Market?
    What is Uncovered put writing in Futures and Options Trading Market?
    What is Uncovered call writing in Futures and Options Trading Market?
    What is U.S. Treasury Note in Futures and Options Trading Market?
    What is U.S. Treasury Bond in Futures and Options Trading Market?
    What is U.S. Treasury Bill in Futures and Options Trading Market?
    What is Type in Futures and Options Trading Market?
    What is Trade Balance in Futures and Options Trading Market?
    What is Time-Stamp in Futures and Options Trading Market?
    What is Time Value in Futures and Options Trading Market?
    What is Time Limit Order in Futures and Options Trading Market?
    What is Time and Sales Ticker in Futures and Options Trading Market?



    Fresher Jobs | Experienced Jobs | Government Jobs | Walkin Jobs | Company Profiles | Interview Questions | Placement Papers | Companies In India | Consultants In India | Colleges In India | Exams In India | Latest Results | Notifications In India | Call Centers In India | Training Institutes In India | Job Communities In India | Courses In India | Jobs by Keyskills | Jobs by Functional Areas

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

    Gate Articles | Gate Books | Gate Colleges | Gate Downloads | Gate Faqs | Gate Jobs | Gate News | Gate Sample Papers | Gate Training Institutes

    MBA Articles | MBA Books | MBA Case Studies | MBA Business Schools | MBA Current Affairs | MBA Downloads | MBA Events | MBA Notifications | MBA FAQs | MBA Jobs
    MBA Job Consultants | MBA News | MBA Results | MBA Courses | MBA Sample Papers | MBA Interview Questions | MBA Training Institutes

    GRE Articles | GRE Books | GRE Colleges | GRE Downloads | GRE Events | GRE FAQs | GRE News | GRE Training Institutes | GRE Sample Papers

    IAS Articles | IAS Books | IAS Current Affairs | IAS Downloads | IAS Events | IAS FAQs | IAS News | IAS Notifications | IAS UPSC Jobs | IAS Previous Question Papers
    IAS Results | IAS Sample Papers | IAS Interview Questions | IAS Training Institutes | IAS Toppers Interview

    SAP Articles | SAP Books | SAP Certifications | SAP Companies | SAP Study Materials | SAP Events | SAP FAQs | SAP Jobs | SAP Job Consultants
    SAP Links | SAP News | SAP Sample Papers | SAP Interview Questions | SAP Training Institutes |




    Copyright ©2003-2016 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions



    Cache = 0.003906 Seconds