how 2 compile & execute c program with out using editor?

Answers were Sorted based on User's Feedback



how 2 compile & execute c program with out using editor?..

Answer / sam

compling c executing c program without editor is similar to
that of Java program.
we just have to set the path to TC to the PATH environment
variable.
then using the TCC command we can execute the C program.....
EG: TCC sam.c //Compilation
sam //Execution

Is This Answer Correct ?    17 Yes 3 No

how 2 compile & execute c program with out using editor?..

Answer / nihar sharma

after set path and complied prod ...that feed back from cmd
promt..cant file found

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More C Interview Questions

int arr[] = {1,2,3,4} int *ptr=arr; *(arr+3) = *++ptr + *ptr++; Final contents of arr[]

6 Answers   Hughes,


Why do u use # before include in a C Progam?

9 Answers   IBM,


Describe dynamic data structure in c programming language?

1 Answers  


Write a routine that prints out a 2-D array in spiral order!

1 Answers   Lucent,


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

1 Answers  


what is the program to display your name in any color?

2 Answers   HCL,


Are local variables initialized to zero by default in c?

1 Answers  


A B C D E F G F E D C B A A B C D E F F E D C B A A B C D E E D C B A A B C D D C B A A B C C B A A B B A A A

2 Answers  


Explain what are binary trees?

1 Answers  


What is restrict keyword in c?

1 Answers  


write a c program in such a way that if we enter the today date the output should be next day's date.

1 Answers  


I need testPalindrome and removeSpace #include <stdio.h> #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, &copyCount); /* 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 ) { }

1 Answers  


Categories