Solved

function return type

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Understanding NAT and UDP 10 108
Native Vlans, Tagged & untagged annnd Trunks 6 50
Link issue 11 55
How to access ANSI/IEEE Std 754 or equivalent information ? 3 45
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
Creating an OSPF network that automatically (dynamically) reroutes network traffic over other connections to prevent network downtime.
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…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

895 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

15 Experts available now in Live!

Get 1:1 Help Now