What is wrong with the following program? - ProProfs Discuss
Advertisement

What is wrong with the following program?

What is wrong with the following program?

Change Image    Delete

main() { char m1[9]= message1; char m2[9]=message2; m2=m1; printf(msg is %s,m2); }

Asked by Sudha_test, Last updated: Dec 10, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

sudha_test

sudha_test

sudha_test
Sudha_test

Answered Mar 01, 2018

Array is not a left value and so cannot be assigned to
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.