XYZ Technologies is a leading international provider of automated and IT enabled solutions catering to businesses across various verticals around the globe. Since its inception in 1995, XYZ has regimented itself being committed to deliver the best software solutions. XYZ has ever since used highly experienced resources in analysis, development, quality assurance, and implementation to provide a wide range of high-quality consulting services and cost-effective development of customized application software. XYZ’s worldwide domain and subject matter expertise, proven track record and the capability to act as solution integrators can give you a truly cost-effective solution that not only meets, but surpasses your needs.
They have developed a system in which they want to keep track of an event occurring frequently in the system. They can do this by calling a function, increment the previous value of the event-occurring-counter, and print its value and then return. To accomplish this they need a variable which can retain its value even after the function returns so that in the next call to the function the previous value of the counter could be incremented by one and so on.
According to your opinion, which type of variable they should use local, global, static or auto? Support your answer with valid arguments.DOWNLOAD SOLUTION HERE