C
Programming and Technical
Q. What is difference between .com program and .exe program?
A. Both .com and .exe program are executable program but .com program execute faster than .exe program. All drivers are .com program. .com file has higher preference than .exe For example
Read Solution (Total 1)
-
- Both .com and .exe program are executable program but .com program execute faster than .exe program. All drivers are .com program. .com file has higher preference than .exe
For example:
Open the command prompt in window OS. (Type CMD in Run)
In the command prompt type notepad and press enter key you will get the notepad. Since it executes notepad.exe
Repeat the same task but now first create any .com file in the same working directory. We can create it as open the notepad save it as notepad.com, set save as type is All files or we can create the .com file from command prompt.
Then type notepad in command prompt and press the enter key you will get error message like:
C:notepad.com is not a valid Win32 application.
It proves that .com has higher precedence than .exe program.
Com file is binary execute used in MS DOS. Com program keeps only code and data. It stores code and data in one segment. In Turbo C memory model should tiny to create .com program. We will discuss later how to create .com file in in turbo c. - 10 years agoHelpfull: Yes(0) No(0)
C Other Question
Q. Do you know, what is the meaning and use of static keyword in c?
A. Keyword static is used for declaring static variables in c. This modifier is used with all data types like int, float, double, array, pointer, structure, function etc.
Q. Difference between TSR and TSO program?
A. TSO means terminate but stay outside. It is that program, which release the main memory after the execution of the program. Example ms paint, notepad, turbo c compilers etc. TSR means terminate but stay residence .It is those program, which after the execution of the program does not release the RAM (main memory).e.g. antivirus.