Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7900375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:57:18+00:00 2026-06-03T08:57:18+00:00

while (packet[i].source <1 || >1024) Error: expected primary-expression before > token. It works fine

  • 0
while (packet[i].source <1 || >1024)

Error: expected primary-expression before > token.

It works fine when I just do <1 , then when I add an OR operator it breaks :/

inb4 something stupidly simple but I’ve been coding for days and my brain is on fire.

Cheers guys.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T08:57:19+00:00Added an answer on June 3, 2026 at 8:57 am

    It should be:

    while (packet[i].source < 1 || packet[i].source > 1024)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am creating WRQ packet for TFTP client in cPP. the code works fine
I want to prepend IP header on an existing IP packet while inside NF_HOOK_LOCAL_OUT.
What is the equivlant of this: while (Offset < packet.Data.Length) { Offset += m_Socket.Receive(packet.Data,
This came up while answering BufferedWriter only works the first time As far as
Is it possible to do the following with AsyncSocket: while (response packet is not
basically, i was wiresharking packets on my PS3 while viewing Motorstorm Leaderboards. The leaderboards
While reading through another question here, on creating a URL shortening service, it was
While editing .scm files it would be great if Vim would automatically put the
While my ASP.NET project uses version 3.5 of the framework , the event log
While making some final tests of a class-library that I'm writing for Windows Mobile

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.