Currently browsing

July 7, 2012

Meet the people behind LPCXpresso

Meet the people behind LPCXpresso OK, I admit it, I have been talking quite a lot about LPCXpresso lately. Why? Because I like NXP’s concept of handing out free tools (did you know that they did it again? Get a board for free just by answering some questions on their …

C Programming User define functions

C Programming: User define functions A function in C can be taken as function in mathematics like sin(x), x^2+2x+6 etc. You supply the value of variable x and it gives its corresponding functional value. You can supply any value of x and it gives corresponding functional value. C equivalent syntax …

Sorting strings alphabetically using C

Sorting strings alphabetically using C Source Code #include #include #include void reorder(int n, char *x[]); int main(){ int i , no_string; char *x[10]; printf(“Enter the no of strings: “); scanf(“%d”,&no_string); printf(“Enter the strings: \n”); for(i = 0; i < no_string; i++){ x[i] = (char*) malloc (12*sizeof(char)); printf("string %d: ",i+1); scanf("%s", …