• Register
Welcome to Kodlogs Q&A, where you can ask programming questions and receive answers from other members of the community. For programmers, by programmers Kodlogs is an open community for anyone that does coding. We help you get answers to your toughest coding questions, share knowledge with your coworkers in private, and find your next IT dream job.

Most popular tags

java program php python javascript c# android r c spring-boot arrays html mysql entity-framework sql-server matlab redirect code program numpy spring asp loop net class quirks-mode internet-explorer-9 internet-explorer machine-learning winforms visual-studio-2010 webpack python-3 python-2 aspnet dataframe pandas jdbc ios eclipse sum loops css cmd tcp math security jquery sockets sql 7 number firebase-authentication aws-organizations amazon-web-services php-7 string-formatting cplusplus visual-studio-2015 net-core net-mvc msbuild extension-methods foreign-keys sql-server-2005 windows-services react-redux reactjs inputstream facebook-graph-api for-loop entity-framework-4 reportingservices-2005 reporting-services mips linear-regression scikit-learn anova deep-learning keras block-device melt reshape2 floating-point webpack-dev-server javascrip 0-lollipop android-5 statsmodels avx indentation-error eclipseide javafx-2 php-not-recognized laravel command-line unit-testing tinyurl atom-editor android-emulator android-studio android-sdk-tools ionic2 cordova jupyter-notebook foobar2k tcplistener net-2 net-4 ole-db-provider windows-10 vagrantfile ggplot2 glmnet jvm-arguments global-variables orm virtualenv atom xls oledb redux webclient prediction headless hyperlink outlook pipeline iis perfect-square objective-c carthage xcode8 compiler-errors numpy-ndarray standard-deviation xampp apple mdf destructor vagrant gettime gmail ioexception heuristics milliseconds reporting cpu npm modx-revolution goldsky modx prevnext javascript-dictionary stack-smashing device-monitor radio-button android-actionbaractivity android-activity android-fragments java-long unqualified-id ora-12154 javc c++ java nullpointerexception runtime-error drjava awt-eventqueue dsx math-pow ajquery nosuchelementexception appcompatactivity jtextfield jpanel inputmismatchexception deque jupyter javafx lvalue junit tensorflow ibm factorial servlet apache boot virtualbox indentation jvm margins 2147483647 xcode firebase plot deployment processor automation socketexception pointers concatenation oracle devices color recursion sequence search date caching expected response directory csv algorithms release collections facebook float figure url expression microsoft sorting sort datetime httpwebrequest cryptography json ajax exe dictionary required windows string variable size dll system exception files x int function random import code 2
+1 vote
expression must be a modifiable lvalue
by (1.5k points)  
reshown by

1 Answer

0 votes
Best answer

expression must be a modifiable lvalue

error #137:expression must be a modifiable lvalue 

A "lvalue" is something that shows up on the left half of an administrator. On the off chance that the administrator is =, at that point it's attempting to appoint the incentive on the privilege to some place in memory named by the thing on the left, so the thing on the left needs to indicate something with a spot in memory . 

For instance in the accompanying articulation, the variable Value is the lvalue all things considered on the left hand side of the announcement and is having its worth adjusted to be 24 

Worth = 24; 

This mistake would be produced for the accompanying model as the if restrictive contains a task which endeavors to allocate the Value variable to the strict 24. Since 24 isn't a lvalue, the blunder is produced. 

#include "mbed.h" 

int principle() 

int Value = 24; 

on the off chance that (24 = Value)/*** This line will create the blunder. 

printf("Value is equivalent to 24.\n"); 

Additionally You may experience the accompanying message in the event that you move code to another form of the IAR C/C++ Compiler: 

Error[Pe137]: articulation must be a modifiable lvalue 

This message happens in light of the fact that a cast does not deliver a lvalue 

void f (void * ptr) 

*(long *)ptr = 0x11223344L; 

Step by step instructions to dispose of the blunder message: 

The most ideal way is presumably to revamp the sorts with the goal that the cast don't show up in any case, if conceivable. 

An option is to utilize an impermanent variable of the ideal kind 

Articulation must be a modifiable lvalue. C++ 

a, b, c, d, and e should be on the left half of the essential task administrators in the main picture. So: 

a = value_1 + value_6; 

b = value_2 - value_6; 

the issue here is that you are allocating to an articulation. 'lvalue' signifies "left worth", instead of 'rvalue', "right worth". 'value_1 + value_6' is an articulation that assesses as a 'rvalue'. 

You are basically saying '1 + 2 = a', which is distorted C (and C++). 

Maybe you intended to switch the left and right sides of '='?

by (8.9k points)