- 1

What is output of this code...???

char *func(void); main() { char *Text1; Text1 = func(); } char *func(void) { char Text2[10]="martin"; return(Text2); }

26th Feb 2018, 4:52 PM
Prajeet Kumar
Prajeet Kumar - avatar
3 Answers
+ 5
This is why it is very important to properly format your code, especially when presenting it to others. Because you didn't feel like properly formatting your code, we have to do it ourselves in order to even help you OR read it as one line of text. https://www.sololearn.com/Codes/ ^Go there, click on 'New Code', and copy/paste your code into that. Properly format your code. Save it and then post the link to us. We'll be more than happy to help you out, and this is also a very good way for you to see what the output of the code is.
26th Feb 2018, 5:03 PM
Fata1 Err0r
Fata1 Err0r - avatar
+ 5
Nothing, as your code doesn't access any output functions.
26th Feb 2018, 5:36 PM
John Wells
John Wells - avatar
0
Iska answer "m" hoga Kyuki function ka return type char* h so wo base address return krega
28th Feb 2018, 12:40 PM
Prajeet Kumar
Prajeet Kumar - avatar