How many files are created when a C program is executed

0 votes
How many files are created when we programme in C language, such as one ".exe" and one ".obj"? Are there any more files created? Where are they?
Jun 11, 2022 in C# by jyoti
• 1,240 points
2,591 views

1 answer to this question.

0 votes

It depends. Depending on the compiler type used and flags passed, lots of conditions might happen.

Consider these for example:

  1. Various temporary files are frequently created by the C compiler (and subsequently removed).
  2. One or more object files are produced by the C compiler.
  3. Temporary files may be created (and deleted) by the linker in addition to producing an executable.
  4. Some C compilers (like gcc, for example) also serve as front-end drivers for the linker and the compiler. Any unnecessary temporary files, such as the object files produced during the compilation stage, may be deleted in this scenario by the compiler.
So depending on the system and compiler being used, there will be variations.
answered Jun 23, 2022 by krishna
• 2,820 points

Related Questions In C#

0 votes
1 answer

Why program working differently on every run when using async?

You can use the async Main method ...READ MORE

answered May 30, 2022 in C# by rajiv
• 1,620 points
291 views
0 votes
1 answer

How to iterate over a dictionary?

I have seen this being used. In ...READ MORE

answered Jun 7, 2022 in C# by pranav
• 2,590 points
248 views
0 votes
1 answer

Is a Library a project or a C# source code file in Visual Studio?

A library project is a collection of ...READ MORE

answered Jun 7, 2022 in C# by rajiv
• 1,620 points
259 views
0 votes
1 answer

How can I compile and run c# program without using visual studio

If you have.NET Framework v4 installed, then C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe ...READ MORE

answered Jun 9, 2022 in C# by rajiv
• 1,620 points
874 views
0 votes
1 answer

What are the differences between C, C# and C++ in terms of real-world applications?

C is a bare-bones, straightforward, and clean ...READ MORE

answered May 30, 2022 in C# by rajiv
• 1,620 points
307 views
0 votes
1 answer

C# books or web sites for C++

I would recommend checking out C# in ...READ MORE

answered Jun 6, 2022 in C# by pranav
• 2,590 points
247 views
0 votes
1 answer

Comparison of C++ STL collections and C# collections

This is what I know Array - C ...READ MORE

answered Jun 9, 2022 in C# by rajiv
• 1,620 points
358 views
0 votes
0 answers

Learning C from a background in C#

I'd like to increase my programming expertise, ...READ MORE

Jun 11, 2022 in C# by jyoti
• 1,240 points
158 views
0 votes
1 answer

How to initialize a list of strings (List<string>) with many string values

Simply remove the () at the end. List<string> ...READ MORE

answered Jun 13, 2022 in C# by krishna
• 2,820 points
1,087 views
0 votes
1 answer

How do I turn a C# object into a JSON string in .NET

Newtonsoft.json can be used to accomplish this. ...READ MORE

answered Jun 13, 2022 in C# by krishna
• 2,820 points
340 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP