Advertisement
dllbridge

Untitled

Feb 11th, 2025
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.52 KB | None | 0 0
  1.  
  2. #include   <stdio.h>
  3. #include  <string.h>
  4.  
  5.  
  6. char c      = 'g';
  7. char sz[99] = "an apple is very tasty";
  8.  
  9.  
  10. ////////////////////////////////////////////////////////
  11. int main()
  12. {
  13.    
  14.     for(int i = 0; i < strlen(sz); i++)
  15.     {
  16.         sz[i] ++;
  17.     }
  18.    
  19.     printf("sz  = %s\n", sz );
  20.  
  21.     for(int i= 0; i < strlen(sz); i++)
  22.     {
  23.         sz [i]--;
  24.     }
  25.    
  26.     printf("sz  = %s\n", sz );
  27.     printf("77 = %d\n", 77);                   
  28.     printf("c  = %c\n", c );    
  29.     printf("c  = %d\n", c );
  30.  
  31. return 0;
  32. }
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement