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
Post a Comment