Solved

function return type

Posted on 2013-06-12
2
402 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
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…
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.
Viewers will learn how to properly install and use Secure Shell (SSH) to work on projects or homework remotely. Download Secure Shell: Follow basic installation instructions: Open Secure Shell and use "Quick Connect" to enter credentials includi…

861 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