c - How to print the number of times the program is executed? -


i want write simple c program print number of times program got executed (by user).

for example,

output should you executing program 3rd time

i first thought of using file handling later came know volatile , register.

is there use of volatile or register in context?

no, volatile , register meaningful within same run. instead, store counter in file.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -