function return type

Lets say if i have a function

int something() {
   return 5;
}

// actual call
(void) something();


is it legal to use the above call without lvalue (int r = something())

does it create any internal memory issue
perlperlAsked:
Who is Participating?
 
ozoConnect With a Mentor Commented:
is it legal
yes

does it create any internal memory issue
no
0
 
perlperlAuthor Commented:
Thanks ozo
0
All Courses

From novice to tech pro — start learning today.