Programming Tutorials

C Tutorials

11. Infix to Prefix And Postfix in C

By: Prachi : 2009-03-21

Description: This is a sample program that converts Infix to Prefix and Postfix in C.

12. 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.

13. 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.

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. 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.

16. 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.,

17. Writing The First C program

By: Ram : 2008-07-08

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

18. 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

19. perror() Function - example program in C

By: Lakshmi : 2007-10-03

Description: The perror() function is another of C's error-handling tools. When called, perror() displays a message on stderr describing the most recent error that occurred during a library function call or system call. The prototype, in STDIO.H, is

20. 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);