But, suppose for the time being this is the interrupt service routine, what I have done: we have declared a global variable integer variable called "pulses," initialized to 0. তবে, আপাতত ধরুন এটি বাধা পরিষেবা রুটিন, আমি যা করেছি: আমরা একটি গ্লোবাল ইন্টিজার ভেরিয়েবল "pulses" নামে ঘোষণা করেছি, যা 0 তে সূচনা করা হয়েছে।
પરંતુ, ધારો કે આ સમય માટે આ ઇન્ટરપટ સર્વિસ રૂટિન છે, મેં જે કર્યું છે તે: આપણે "પલ્સ" તરીકે ઓળખાતા વૈશ્વિક વેરિયેબલ પૂર્ણાંક વેરિયેબલને 0 પર ઇનિશ્યલાઈઝ કર્યો છે.