Advertisement
Guest User

Untitled

a guest
Sep 21st, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.  
  5. char s[]="thisisthe";
  6.  
  7. char s1=s[0]; //Store the first byte of s as a char.
  8.  
  9. char s2=s[1]; // store the second byte of s as a string.
  10.  
  11. printf("%sn",s2);
  12.  
  13. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement