Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.89 KB | None | 0 0
  1. #include <stdio.h>
  2. void hello_with_n()
  3. {
  4.     printf ("hello ") ;
  5.     printf ("\n") ;
  6.     printf ("world") ;
  7. }
  8.  
  9. void hello_with_t()
  10. {
  11.     printf ("hello ") ;
  12.     printf ("\t") ;
  13.     printf ("world") ;
  14. }
  15.  
  16. void hello_with_b()
  17. {
  18.     printf ("hello ") ;
  19.     printf ("\b") ;
  20.     printf ("world") ;
  21. }
  22.  
  23. void hello_with_r()
  24. {
  25.     printf ("hello ") ;
  26.     printf ("\r") ;
  27.     printf ("world") ;
  28. }
  29.  
  30. void hello_with_slash()
  31. {
  32.     printf ("hello ") ;
  33.     printf ("\'") ;
  34.     printf ("world") ;
  35. }
  36.  
  37. void hello_with_double_slash()
  38. {
  39.     printf ("hello ") ;
  40.     printf ("\\") ;
  41.     printf ("world") ;
  42. }
  43.  
  44. void hello_with_zero()
  45. {
  46.     printf ("hello ") ;
  47.     printf ("\0") ;
  48.     printf ("world") ;
  49. }
  50.  
  51. void hello_with_a()
  52. {
  53.     printf ("hello ") ;
  54.     printf ("\a") ;
  55.     printf ("world") ;
  56. }
  57.  
  58.  
  59. int main()
  60. {
  61.     hello_with_r();
  62.     hello_with_a();
  63.     return 0;
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement