Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.
Static Storage Class
Profile Answers by shyamkumar1221 Questions by shyamkumar1221
Questions by shyamkumar1221
Editorial / Best Answer
clickankit4uProfile Answers by clickankit4u Questions by clickankit4u
Thinks of a situation where you need to do some work just once in a function irrespective of how many times that function is invoked then u can have a static variable which will keep a track of it. eg int main () { static int once = 0; if (!once) { once++; /*code need to be executed once*/ } /*reset of the code*/ }
Related Answered Questions
Related Open Questions