C Data Type char

C examples for Data Type:char

Description

Click the following links for the tutorial for Data Type and char.

  1. Apply arithmetic operations to values of type char
  2. Use the conversion specifier %c to output char type as a character rather than an integer.
  3. Output the numeric value of a character
  4. Character Input and Character Output
  5. Does arithmetic operation on the value of type char
  6. Initialize a variable of type char with an integer value.
  7. Use an escape sequence between a pair of single quotes to specify a character constant
  8. What is Character Type


  9. Convert any uppercase letter that is lowercase
  10. Use toupper() and the tolower() functions to convert a character to uppercase and lowercase, respectively.
  11. Output a single character with putchar() function
  12. ASCII Character Code Values
  13. Use scanf() to read the keyboard for a single character, specified by the placeholder %c.
  14. How char variables can be both integers and characters.
  15. Putchar() function displays a character on the screen.
  16. Use getchar() function to read a single character from key board


  17. Output what you read from user
  18. Break keyword is used with the if command to exit the loop when you press the ~ (tilde) key:
  19. Read two characters from user and compare them
  20. Select from list of options
  21. Use getchar() and putchar() to input characters from the keyboard and display them in reverse case.
  22. Getch( ) function waits for a keypress.
  23. Read one letter and check its value
  24. Use isdigit() Function to check user input
  25. Printf(), Escape Sequences, and Conversion Characters
  26. Use the most popular Escape Sequences
  27. Read a single character
  28. Outputs a single character
  29. Assign char type to a variable and output as integer
  30. Categorize a single character that is entered at the terminal.
  31. counts number of lines in input:
  32. counts number of characters in input:
  33. Copies input to output
  34. What does the following program do, for loop and character output
  35. Use puts() to output string array
  36. Using putchar() to display strings.
  37. Use putchar() function to output character
  38. Exercise printf() for field width, Hexadecimal, Octal, Decimal, Binary numbers
  39. Use the getch() function to read \n, return character
  40. Using getchar() to input strings.
  41. Use the getchar() function to read user input
  42. Using getch() to input strings and read Non-ANSI code, \r
  43. Read char with the getch() function and deal with Non-ANSI code
  44. Printing extended ASCII characters
  45. Numeric nature of char variables
  46. Write a program to print the value of EOF.
  47. Verify that the expression getchar() != EOF is 0 or 1.
  48. Copy input to output with getchar() and putchar()
  49. Convert c to lower case; ASCII only
  50. Count characters in input with for loop
  51. Count characters in input with while loop
  52. Counts input lines from user input
  53. Write a program to count blanks, tabs, and newlines.
  54. Counts lines, words, and characters in input
  55. Copy its input to its output, replacing each tab by \t, each backspace by \b, and each backslash by \\.
  56. Copy its input to its output, replacing each string of one or more blanks by a single blank.
  57. Count the number of occurrences of each digit, of white space characters (blank, tab, newline), and of all other characters.
  58. Prints input one word per line.
  59. The complete set of escape sequences
  60. Converts upper case letters to lower case, with a conditional expression instead of if-else.
  61. Converts characters like newline and tab into visible escape sequences like \n and \t
  62. Escape Sequences in printf function
  63. Enter an ASCII code value, such as 66, and then prints the character having that ASCII code.
  64. Creates an array with 26 elements and stores the 26 lowercase letters in it.
  65. Counts characters, words, lines
  66. Prints characters in rows and columns
  67. Repeats input to end of file with getchar() and putchar()
  68. Read characters from keyboard input and send them to the screen with getchar() and putchar()
  69. Reads input as a stream of characters until encountering EOF without using isupper and islower functions.
  70. Reads input as a stream of characters until encountering EOF with isupper and islower functions.
  71. Output character by count
  72. Using standard I/O to count character