Answer Posted / mubeen riaz
1
down vote
Computers basicly work with binary numbers, people speak their native languages, so, programming languages are for communication between people and computers. If you say: Add 2 and 3 and then substract 1 from it, I doubt that computer would understand anything (maybe in some programming language it would). So, you need to translate your source code into a format that computer understands, so you need a compiler, which translates a programming language to co called object code. But object code is not yet the language a computer understands and executes directly. So it needs a linker which will make an executable file that containts instructions in so called machine language; a machine language is a set of operations coded into binary numbers which processor understands. All binary instructions have it's structure and it's published by a processor manufacturers. You can look for it on say Intel's site and see how do they look like. I can't give a satisfactory answer for loaders at the moment so please search Google as a beginning step.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Are bit fields portable?
Write a factorial program using C.
Can you define which header file to include at compile time?
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
Explain how can you be sure that a program follows the ansi c standard?
What is a structure and why it is used?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
In a header file whether functions are declared or defined?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
Explain indirection?
Explain the use of keyword 'register' with respect to variables.
What is extern c used for?
Is there a way to compare two structure variables?