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 in C# by jyoti
• 1,240 points
18 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 by krishna
• 2,540 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 in C# by rajiv
• 1,620 points
22 views
0 votes
1 answer

How to iterate over a dictionary?

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

answered Jun 7 in C# by pranav
• 2,580 points
23 views
0 votes
1 answer
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 in C# by rajiv
• 1,620 points
30 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 in C# by rajiv
• 1,620 points
29 views
0 votes
1 answer

C# books or web sites for C++

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

answered Jun 6 in C# by pranav
• 2,580 points
22 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 in C# by rajiv
• 1,620 points
32 views
0 votes
0 answers

Learning C from a background in C#

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

Jun 11 in C# by jyoti
• 1,240 points
12 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 in C# by krishna
• 2,540 points
21 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 in C# by krishna
• 2,540 points
24 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP