C Tutorials

11. while, do while and for loops in C

By: Ram : 2008-09-16

Description: The various loops in C are While loop,do..while loop, and for loop. These loops can be nested to perform complex operations. The break and the continue statements are used to navigate inside loops.

12. Unicode and UTF-8 in C

By: Ramlak : 2008-08-13

Description: Starting with GNU glibc 2.2, the type wchar_t is officially intended to be used only for 32-bit ISO 10646 values, independent of the currently used locale. This is signalled to applications by the definition of the __STDC_ISO_10646__ macro as required by ISO C99. The ISO C multi-byte conversion functions (mbsrtowcs(), wcsrtombs(), etc.) are fully implemented in glibc 2.2 or higher and can be used to convert between wchar_t and any locale-dependent multibyte encoding, including UTF-8, ISO 8859-1, etc.

13. Formatting with printf in C

By: Siva : 2008-08-06

Description: We could right justify our output using the format specifiers. The field-width specifier tells printf( ) how many columns on screen should be used while printing a value(as in %wd),here the value is right justified and is padded with blanks on the left. If we include the minus sign in format specifier (as in %-wd), this means left justification is desired and the value will be padded with blanks on the right.

14. if, if...else and switch statements in C with samples

By: Siva : 2008-08-06

Description: The If statement in C - The if....else statement in C - Logical Operators in C and the Switch statement in C are discussed in detail with examples

15. Statements in C

By: Ram : 2008-07-31

Description: All the statements in C ends with a “;”. The various statements in C are Declaration Statement, Assignment Statement, Output Statement, Input Statement, Control Statement, Loop Statement etc.,

16. Writing The First C program

By: Ram : 2008-07-08

Description: The basic syntax of writing a C program - The anatomy of C

17. The C Character Set

By: Nithya Suresh : 2008-07-05

Description: The character set of C - C has three main types of constants namely integer,real and character constants - There are 32 keywords or reserved words in C

18. Using malloc() Function in C

By: Abinaya : 2007-10-03

Description: The malloc() function isn't limited to allocating memory for strings, of course; it can allocate space for any storage need. This function allocates memory by the byte. Recall that malloc()'s prototype is void *malloc(size_t num);

19. Using calloc() Function in C

By: Baski : 2007-10-03

Description: The calloc() function also allocates memory. Rather than allocating a group of bytes as malloc() does, calloc() allocates a group of objects. The function prototype is void *calloc(size_t num, size_t size);

20. Using realloc() Function in C

By: Charles : 2007-10-03

Description: The realloc() function changes the size of a block of memory that was previously allocated with malloc() or calloc(). The function prototype is void *realloc(void *ptr, size_t size);