Currently browsing

July 4, 2012

CodeLite GDB for ARM

CodeLite & GDB for ARM Just after finishing the Elektor article about how to debug the Sceptre (or any other microcontroller that can be debugged over JTAG) using OpenOCD and GDB, I discovered another free IDE that seemed to be good for embedded development: CodeLite. It seemed to have everything …

Sum of First n natural numbers using C

Sum of First n natural numbers using C This program illustrates the more practical example of application of C-loops discussed in previous lession. This program calculates the sum of first n natural numbers. Complete source code and output of program is given here..Source Code 1: // summation of first n …

C Programming Strings

C Programming: Strings iA string is a sequence of characters( Array of character)  that is treated as a single data item. Any group of characters (except double quote sign) defined between double quotation marks is a string constant. Example: “All is Well” If you want to include a double quote …