Advertisement
Guest User

Untitled

a guest
May 27th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. const char* getName1(void) {
  2. char name[] = "hello";
  3. return name;
  4. }
  5.  
  6. const char* getName2(void) {
  7. const char* name = "hello";
  8. return name;
  9. }
  10.  
  11. // what are the differences between these?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement