answersLogoWhite

0

Files are needed to store a program's source code. The compiler uses these files to create object files which can then be linked by the linker to produce an executable code file. However, not all systems support the concept of a file, thus files are not actually considered part of the C standard and therefore files are not needed. They are simply a convenience when programming upon systems that do support the concept of a file.

User Avatar

Wiki User

9y ago

Still curious? Ask our experts.

Chat with our AI personalities

DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach

Add your answer:

Earn +20 pts
Q: Why do you need files in c program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How many files are created for c program when execute the program?

That's entirely up to the programmer. A program could create 0 files or 50 million files (or any number in between).


What is another name for an include file in c program?

Include files are also known as header files.


How do you open tiff files?

TIFF files are image files. They need to be opened in some type of image viewing program or image editing program like Photoshop.


All commands like percent userprofile percent?

Variable Default value:Windows XP Default value:Windows 7/2008 %ALLUSERSPROFILE% C:\Documents and Settings\All Users C:\ProgramData %APPDATA% C:\Documents and Settings\{username}\Application Data C:\Users\{username}\AppData\Roaming %CommonProgramFiles% C:\Program Files\Common Files C:\Program Files\Common Files %COMMONPROGRAMFILES(x86)% C:\Program Files (x86)\Common Files C:\Program Files (x86)\Common Files %COMPUTERNAME% {computername} {computername} %COMSPEC% C:\Windows\System32\cmd.exe C:\Windows\System32\cmd.exe %HOMEDRIVE% C: C: %HOMEPATH% \Documents and Settings\{username}\Users\{username} %LOCALAPPDATA%N/A(but can be manually added LOCALAPPDATA=%USERPROFILE%\Local Settings\Application Data)C:\Users\{username}\AppData\Local %LOGONSERVER% \\{domain_logon_server} \\{domain_logon_server} %PATH% C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem;{plus program paths} C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem;{plus program paths} %PATHEXT% .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS ; .WSF; .WSH; .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS ; .WSF; .WSH; .MSC %ProgramData% N/A C:\ProgramData %ProgramFiles% C:\Program Files C:\Program Files %ProgramFiles(x86)% 1 C:\Program Files (x86) C:\Program Files (x86) %PROMPT% Code for current command prompt format,usually $P$G C:> Code for current command prompt format,usually $P$GC:> %PSModulePath% N/A %SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\ %Public% N/A C:\Users\Public %SYSTEMDRIVE% C: C: %SYSTEMROOT% C:\Windows C:\Windows %TEMP% and %TMP% C:\Documents and Settings\{username}\Local Settings\Temp C:\Users\{Username}\AppData\Local\Temp %USERDOMAIN% {userdomain} {userdomain} %USERNAME% {username}{username} %USERPROFILE% %SystemDrive%\Documents and Settings\{username}%SystemDrive%\Users\{username} %WINDIR% C:\Windows C:\Windows


How do you execute a program in cmd with space?

Surround the name of the program in quotation marks, such as: "C:\Program Files (x86)\Programmer's Notepad\pn.exe".