Do anyone have any idea to write a c progrm which counts no of times it is run
without using a updating file??:?:

to do so you have to store it in memory. How do you plan to do this without use of a file?

to do so you have to store it in memory. How do you plan to do this without use of a file?

can the program be made to edit its own exe
file?

No

No, it is not possible to make such program

Of course, it's possible, all viruses do that ;) .
So you will have a lots of troubles with anti-virus protection on computers of your masterpiece unhappy users...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.