how 2 compile & execute c program with out using editor?
Answers were Sorted based on User's Feedback
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 |
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 |
int arr[] = {1,2,3,4} int *ptr=arr; *(arr+3) = *++ptr + *ptr++; Final contents of arr[]
Why do u use # before include in a C Progam?
Describe dynamic data structure in c programming language?
Write a routine that prints out a 2-D array in spiral order!
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
what is the program to display your name in any color?
Are local variables initialized to zero by default in c?
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
Explain what are binary trees?
What is restrict keyword in c?
write a c program in such a way that if we enter the today date the output should be next day's date.
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, ©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 ) { }