C Programming Code Examples C > Code Snippets Assign function which is called when exit Assign value to char pointer Assign value to global variable associates an existing stream with a different file Beep a sound Binary search:bsearch in stdlib.h Bitwise calculation Bitwise operator Block if else statement By default, the blank characters are space and horizontal tab Calculate arccosine: acos Calculate arcsine: how to use asin Calculate arctangent: how to use atan Calculate cosine: how to use cos Calculate exponential: how to use exp Calculate hyperbolic cosine: how to use cosh Calculate hyperbolic sine: how to use sinh Calculate hyperbolic tangent: how to use tanh Calculate natural log: how to use log Calculate numeric power: how to use pow Calculate sine: sin Calculate square root: how to use sqrt Calculate tangent: tan Calculating a floating-point average using pointers Calculating an average using variable argument lists Calculating factorials using recursion Calculating the area of a room Calculation between int and float Calculation: divide and mod, / % causes immediate, normal termination of a program Change stream buffering: how to setbuf Change string case using its pointer Change string to integer changes the file name Characters in the format control string Char's pointer's pointer check for a file error Check for errors: How to use ferror Check if End Of File has been reached: how to use feof Check string length and set string end Check the command line input Page 1 Page 2 Page 3 Page 4 Page 15