Please can any one explain this: Current Time = time(NULL); do { Elapsed Time = time(NULL); } while ( (Elapsed Time - Current Time )< 5);

Asked by Last Modified  

3 Answers

Learn BA Tuition +1 Programming Fundamentals using C++

Follow 0
Answer

Please enter your answer

Java Trainer

This do-while is infinite. Since we are subtracting same numbers again and again.
Comments

Computer Science C++, JAVA, Data Structure

Its checking for 5 seconds or we can say this statement takes 5 seconds to execute, therefore control will reach no the next statement after 5 second. You may use sleep in C-language for the same loop.
Comments

Tutor

Hello dears please review us on: https://www.urbanpro.com/rr/774061. For more valuable information in future.
Comments

View 1 more Answers

Related Questions

What is meant by poverty?
Below poverty line people get lot of benefits by the Government.
Subash
1 0
9

When did "Department of Education" was formed in India?

the Ministry of Education which is responsible for implementing the National Education policy, was created on September 26, 1985
I'm Smart Future School
0 0
9
What is marketing?
In simple words - Sales is today of an organisation and Marketing is tommorow".
Nagendra
What is algorithm for finding factorial??
Factorial of a number is multiplying the numbers from 1,2,3...n where n is the number whose factorial is to be found out. There are two methods called recursive and iterative.In recursive method program...
Saravanan
0 0
7

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Oxidative Phosphorylation
Oxidative PhosphorylationIt is the main source of energy of our cell. Takes place in Mitochondria. Movement of protons through inner mitochondrial membrane leads to ATP production. Definition:Oxidative...


NLP (Neuro Lingustic Programming) & Purpose of Communication
NLP (Neuro-Linguistic Programming) & Purpose of communication What is NLP? NLP (Neuro-Linguistic Programming) is a simple and skilful method to understand what is going on inside the mind of a person,...


Mathematical Economics
Functions of one variable (DEMO) Reference book: Sydsaeter and Hammond Play with Graphs- Arihant Content plan for Day 1: Graphs of Functions: Special focus on trigonometric functions. All basic functions...

Recommended Articles

Whatever you learn in college is no doubt very important and forms the base for your future professional career. However, lack of hands-on experience, business oriented skills and interpersonal skills, among fresh graduates are making them unfit for employment in competitive business environment. Today organizations operate...

Read full article >

Whether you are doing graduation or post graduation, no college student can escape from the misery of college dissertation. College dissertation is a detailed research project on a topic of your choice, approved by professors. At the beginning of the dissertation you have to set a hypothetical aim and at the end, you have...

Read full article >

Most of the students decide what stream they are going to choose at the school level. Science, commerce and arts are the main fields, and students need to choose any one between these three. Although there are many such professional courses available, most students like to select one of these three streams. In college,...

Read full article >

During the last days in school, every student waits for their college life. It is, of course, exciting to get admission in your dream college with the course you wanted to pursue. Its your effort and struggle that makes you part of the college that you aimed for. Yet, once the first month passes all students forget their...

Read full article >

Looking for BA Tuition ?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you