what are the compilation steps?
( i want inside the compiler )

Answer Posted / vignesh1988i

first step::: it will include the watever header file
with .h extension
second::: then it will read each line by line ...
third:::: then it will convert the code to the machine
level code
fourth>::: it will then match the syntax with the compailer
syntax which is being writtern there
fifth::: but logical errors in the program cant be found by
the compailer
sixth::: as soon as the syntax is said to be correct this
will be again decoded by the compailer to the user....this
will say SUCCESS... if syntax dosent match wit that syntax
in compailer it will give an ERROR

Is This Answer Correct ?    15 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I remove the trailing spaces from a string?

609


Why functions are used in c?

580


Write a program to show the change in position of a cursor using c

575


what is the syallabus of computer science students in group- 1?

1836


What is the purpose of sprintf?

615






How can I get back to the interactive keyboard if stdin is redirected?

663


Can a variable be both const and volatile?

669


What is a lvalue

657


What is difference between function overloading and operator overloading?

651


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1442


What is a function simple definition?

610


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

4737


How can I do peek and poke in c?

616


What is wild pointer in c with example?

570


I need testPalindrome and removeSpace #include #define SIZE 256 /* function prototype */ /* test if the chars in the range of [left, right] of array is a palindrome */ int testPalindrome( char array[], int left, int right ); /* remove the space in the src array and copy it over to the "copy" array */ /* set the number of chars in the "copy" array to the location that cnt points t */ void removeSpace(char src[], char copy[], int *cnt); int main( void ) { char c; /* temporarily holds keyboard input */ char string[ SIZE ]; /* original string */ char copy[ SIZE ]; /* copy of string without spaces */ int count = 0; /* length of string */ int copyCount; /* length of copy */ printf( "Enter a sentence:\n" ); /* get sentence to test from user */ while ( ( c = getchar() ) != '\n' && count < SIZE ) { string[ count++ ] = c; } /* end while */ string[ count ] = '\0'; /* terminate string */ /* make a copy of string without spaces */ removeSpace(string, copy, ©Count); /* print whether or not the sentence is a palindrome */ if ( testPalindrome( copy, 0, copyCount - 1 ) ) { printf( "\"%s\" is a palindrome\n", string ); } /* end if */ else { printf( "\"%s\" is not a palindrome\n", string ); } /* end else */ return 0; /* indicate successful termination */ } /* end main */ void removeSpace(char src[], char copy[], int *cnt) { } int testPalindrome( char array[], int left, int right ) { }

2205