Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Functions.c: In function ‘getLine’:
- Functions.c:7: warning: return makes integer from pointer without a cast
- Functions.c:7: warning: function returns address of local variable
- #include <stdio.h>
- char getLine() {
- char line[1000];
- scanf("%s", line);
- return line;
- }
- main() {
- /* more code to come here*/
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement