By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,613 Members | 1,890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,613 IT Pros & Developers. It's quick & easy.

fixing errors

P: 2
Hi there,
Iam a beginner in c language. When I try to run a set of code I get two errors. One is expression syntax error and the other error says " variable is assigned a value that is never used".
Please help me with this
Find my code here
Attached Files
File Type: txt New Text Document.txt (484 Bytes, 152 views)
Oct 9 '15 #1

✓ answered by weaknessforcats

Expand|Select|Wrap|Line Numbers
  1. while (p = < 4)
  2.     {
  3.         c = 0;
  4. etc...
There is no =< operator. You need to code <= (no space between the < and the =).

Share this Question
Share on Google+
2 Replies


weaknessforcats
Expert Mod 5K+
P: 9,197
Expand|Select|Wrap|Line Numbers
  1. while (p = < 4)
  2.     {
  3.         c = 0;
  4. etc...
There is no =< operator. You need to code <= (no space between the < and the =).
Oct 9 '15 #2

P: 2
Thanks for helping.
That's very usefull
Oct 9 '15 #3

Post your reply

Sign in to post your reply or Sign up for a free account.