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 |
Explain what are preprocessor directives?
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
Why doesnt the call scanf work?
What is typedf?
Is python a c language?
write a programme to convert temperature from farenheit to celcius?
Function calling procedures? and their differences? Why should one go for Call by Reference?
What is #include stdio h and #include conio h?
How to create struct variables?
Just came across this question, felt worth sharing, so here it is I want you to make a C/C++ program that for any positive integer n will print all the positive integers from 1 up to it and then back again! Let's say n=5 I want the program to print: 1 2 3 4 5 4 3 2 1. Too easy you say? Okay then... You can ONLY USE: 1 for loop 1 printf/cout statement 2 integers( i and n) and as many operations you want. NO if statements, NO ternary operators, NO tables, NO pointers, NO functions!
main() { int x=2, y=4 if ((x==2||y==4) x++ y++ if (y==4+1) { x=x+y; } y++; printf("The values of x and y are %d and %d."x,y); } What is the output?
why return type of main is not necessary in linux