how c source file in converted to exe file
Answers were Sorted based on User's Feedback
Answer / anil kumar
For this ans first we have to know the c-compiler architecture
in c we will save the file with .c extension
the compiler first preprocessor toolconverts the .c file into .i(intermediate code) again .i into .asm(assembler) , .asm into .obj(object code) this object code wil be linked with the object for the library functions and generates a .exe(excutable file)
Is This Answer Correct ? | 19 Yes | 1 No |
Answer / anand shankar pathak
first .c file is converted to .i format it is done by the preprocessor and then the compiler convert this file to .asm file later assembler creats object that is linbked together using linker and loader and finally .exe file is genrated
and this process is done automatically while we execute the program we don't have to do anything,
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / manish soni tagore collage jai
first
source file(file name or code program)--complile-->object
file(filename.bak)----excute----->.exe(fliename.exe)
Is This Answer Correct ? | 1 Yes | 10 No |
Answer / ruth
c source file converted into exe file automatically when
you run the program
Is This Answer Correct ? | 5 Yes | 19 No |
/* hello i am ricky dobriyal student of bca from simt
kashipur*/
c source file converted into exe file automatically when
you run the program
thank you..
Is This Answer Correct ? | 8 Yes | 24 No |
What is indirect recursion? give an example?
write a c program to change only the 3rd bit of the particular number such that other bits are not affected.. if bitnum=10(say.. it can be any no..
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
what is a stack
how many header file is in C language ?
44 Answers College School Exams Tests, CTS, IBM, IMS, Infosys, ME, Sign Solutions, Wipro, XVT,
m=++i&&++j(||)k++ printf("%d"i,j,k,m)
What should be keep precautions while using the recursion method?
Why do we use return in c?
difference between c and c++
#include<stdio.h> main() { int i=5; printf("%d",i*i-- - --i*i*i++ + ++i); } tell the answer with correct reason .specially reason is important nt answer ans by turbo c is -39
You have an int array with n elements and a structure with three int members. ie struct No { unsigned int no1; unsigned int no2; unsigned int no3; }; Point1.Lets say 1 byte in the array element is represented like this - 1st 3 bits from LSB is one number, next 2 bits are 2nd no and last 3 bits are 3rd no. Now write a function, struct No* ExtractNos(unsigned int *, int count) which extracts each byte from array and converts LSByte in the order mentioned in point1.and save it the structure no1, no2, no3. in the function struct No* ExtractNos(unsigned int *, int count), first parameter points to the base address of array and second parameter says the no of elements in the array. For example: if your array LSB is Hex F7 then result no1 = 7, no2 = 2, no3 = 7. In the same way convert all the elements from the array and save the result in array of structure.
What is cohesion and coupling in c?