Problem

Discussion in 'C Programming' started by nurshafini, Dec 5, 2011.

  1. nurshafini

    nurshafini

    Joined:
    Dec 5, 2011
    Messages:
    3
    int i;
    int sco[SIZE];
    int SIZE;
    float avg;
    int x,y;
    int sum=0;


    for(i=0;i<SIZE;++i)
    {
    sco - avg = x;
    x*x=y;
    sum=sum+ y;
    }



    What is the error???
    I got non lvalue assignment..help!!
     
    nurshafini, Dec 5, 2011
    #1
    1. Advertising

  2. nurshafini

    nurshafini

    Joined:
    Dec 5, 2011
    Messages:
    3
    Additional declaration


    int sco[SIZE];

    And average had been calculated in other for loop..there is no error there..
     
    nurshafini, Dec 5, 2011
    #2
    1. Advertising

  3. nurshafini

    nurshafini

    Joined:
    Dec 5, 2011
    Messages:
    3
    Help me plizzz
     
    nurshafini, Dec 5, 2011
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Suurkuusk
    Replies:
    0
    Views:
    3,988
    Andreas Suurkuusk
    Jul 27, 2003
  2. Ted Miller
    Replies:
    0
    Views:
    5,160
    Ted Miller
    Sep 13, 2003
  3. Merek
    Replies:
    0
    Views:
    1,968
    Merek
    Dec 3, 2003
  4. Scott Meddows
    Replies:
    1
    Views:
    396
    John Saunders
    Jun 8, 2004
  5. Mike

    Problem problem problem :( Need Help

    Mike, May 7, 2004, in forum: ASP General
    Replies:
    2
    Views:
    552
    Bullschmidt
    May 11, 2004
Loading...

Share This Page