hello
i calculated the run time of my program by clock instruction but when i run the program for one input in several times, the run time of program is different from previous.

There could be lots of reasons for that -- other things running on your computer will affect the runtime of your program.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.