answersLogoWhite

0

#include <stdio.h>

main()

{

FILE *fd;

int c;

fd= fopen("./file.c","r");

while ( (c=fgetc(fd)) != EOF)

{

printf("%c", c);

}

fclose(fd);

}

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

In c language what is source program?

Source program or source code in any language is the code you write to make the program do what you want. Things like: #include &lt;stdio.h&gt; void main (); and so on are all pieces of source-code or source program


How do you write a program that outputs a given characters in reverse?

write the javascript code to display the reverse no. of given no. (e.g. 247 reverse of 742)


How do you change source code into machine code?

A program called a compiler, or sometimes an assembler (depending on the programming language) does this for you. You write the source code, then invoke the program that will convert this into machine language.


Are NET Programs open-source?

While you can write a .NET program and release the source code, there is no requirement to do so.


How do you write c program to delete source code after execution?

Use function unlink to erase files.


Algoritm source code for write a c-program to count lines words and characters in a given text?

yyu5uty


Are source program and source code the same?

Yes.


Write a program in C language to multiply any two numbers without using in source code?

The question is malformed and incomprehensible.


What is the Human readable version of a program called?

Source code. Source code can be written in a high-level like C++, or in a low-level language like assembly. Machine code can also be considered source code if that's what was originally used to write the code, but it is not considered human-readable. In order to read machine code in a human-readable form it must be disassembled, but you cannot reproduce the original source code.


Write an ASP code that will display the source code of the web page in the browser window?

Write an ASP code that will dislplay the source code of the web page in the Browser window.


What does a compiler do when you compile your program?

Coverts source code into object code


What do you mean by programming language?

A programming language is a symbolic language that a computer programmer uses to write computer program source code. Source code is non-executable code and must be translated into machine code. A computer can be programmed to perform this conversion and thus produce the required machine code.