Solved

function return type

Posted on 2013-06-12
2
397 Views
Last Modified: 2013-11-13
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
0
Comment
Question by:perlperl
2 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 300 total points
ID: 39241780
is it legal
yes

does it create any internal memory issue
no
0
 

Author Closing Comment

by:perlperl
ID: 39241815
Thanks ozo
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Please see preceding article here: http://www.experts-exchange.com/Networking/Operating_Systems/A_11209-Root-Bridge-Election.html Figure 1 After Root Bridge has been elected, then what?..... Let's start by defining a Root Port in la…
This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now