Program in c that prints itself




















I have mentioned the lines i need the explanation about, how they work and what are they doing. Please explain. The idea is, that you run the program, compile it's output, run that program and so on. This can be done using File handling. Save the program with any name and put that name in the open directory in fopen command.

Like my program's name is hello. Stack Overflow for Teams — Collaborate and share knowledge with a private group.

Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Ask Question. Asked 10 years, 3 months ago. Active 4 years, 7 months ago. Viewed 19k times. Existing Members Sign in to your account. This email is in use. Do you need your password? Submit your solution! When answering a question please: Read the question carefully.

Understand that English isn't everyone's first language so be lenient of bad spelling and grammar. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid. Related Questions. C problem printing array to screen.

How to physically verify include in C code itself? I can't print on the screen. Print Result To Screen. Print result to the screen. Console error, node. How to print invisible part of the windows forms screen? If you reformat it, you don't understand the code. Show 2 more comments. Active Oldest Votes. The key to understanding it is to know that character 34 is the double quote, ". Improve this answer. Jonathan Leffler Jonathan Leffler k gold badges silver badges bronze badges.

Is there no way to avoid dependeny on ascii? JensGustedt: Interesting question — I'm not sure The other examples do not. Add a comment. If the printf in the program above were replaced with the one below, would you understand it? That simply prints the character with value 34 in the encoding used by the environment in ASCII it's a quote. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.

The Overflow Blog.



0コメント

  • 1000 / 1000