Interviewer And Interviewee Guide

C C++ Errors Interview Question:

char* f()
return "hello:";
void main()
{char *str=f();
}

Submitted by: Administrator
str will be a pointer to "hello:"

so on printing str will output hello:
Submitted by: Administrator

Read Online C C++ Errors Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.