Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const char* getName1(void) {
- char name[] = "hello";
- return name;
- }
- const char* getName2(void) {
- const char* name = "hello";
- return name;
- }
- // what are the differences between these?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement