Character set in C

Character Set: What is a character set?

  • A character set is the mapping of characters to binary values.
  • In 8 bit character sets, the values range from 0255
  • and one character will be mapped to each of
  • these values.
  • This means that if the users terminal is set to support a particular character set; every time he
  • press a certain key or a combination of keys a corresponding character will be invoked.

ASCII Character Set

C Character Set

  • These are the characters that C recognizes.
  • Letters (upper case and lower case)
    • A B C D E … and so on.
    • a b c d e … and so on.
  • Digits
    • 0 1 2 3 … and so on.
  • Special Characters (punctuation etc), space (also known as blank)
    • ′ ″ ( ) * + / : = ! & $ ; <> % ? , . ˆ # @ ˜ ‘ { } [ ] \ |

Programs

Write a program to input number of days from user and display it, week and days format.


For Example

input is : 20 days

then output is:

2 week and 6 days.



View Solution


Write a program to input number of days from user and display it, Month, Week and Days format. (consider 30days = 1 month)


For Example:

input is : 50 days


output is: 1 month, 2 week and 6 days.



View Solution


Write a C program which accept a character from user and ASCII Value of that character


View Solution


Write a program which accept one integer number from user and print it.


View Solution


Write a C Program to input any Character and Find its ASCII Value


View Solution


Write a C Program to input dividend, divisor and Compute Quotient and Remainder


View Solution


Write a C Program to Find the Size of int, float, double and char


View Solution


Write a C Program to Swap Two Numbers


View Solution


Write a C program to Swap Numbers Without Using Temporary(3rd) Variables


View Solution


Write a C Program to input any  number and Check  number is Odd or Even Using the Ternary Operator


View Solution