SHARE
TWEET

Untitled

a guest Mar 21st, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. char * mkstr() {
  4.     return "some data";
  5. }
  6.  
  7. char * mkstr1() {
  8.     return "data some";
  9. }
  10.  
  11. int main() {
  12.     char arr[] = "asdf";
  13.     //arr = mkstr();
  14.  
  15.     char * str = mkstr();
  16.     mkstr1();
  17.  
  18.     printf("%s %s %lu", str, arr, sizeof arr);
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top