A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

anonymous

  • one year ago

For each of the below variable names, indicate (with y or n) whether it is legal and whether it uses the proper style. You may skip the style portion for any that are not legal. a. _isReady b. 3rdName c. num of wheels d. money#on#hand e. taxRate f. SeatNumber

  • This Question is Closed
  1. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    @hartnn I would greatly appreciate your help!

  2. hartnn
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 1

    variable names cannot start with a number or special character it should only start with an alphabet

  3. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Ok so a. n b. n c. y d. y e. y f. y

  4. hartnn
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 1

    also there shouldn't be a space in between

  5. hartnn
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 1

    also # is not allowed in the name

  6. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Oh. So a. n b. n c. n d. y, y e. y, y f. y, y

  7. hartnn
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 1

    actually _ in the beginning is allowed! so 1st one is valid

  8. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Ok. But how do I know if they use the proper style?

  9. hartnn
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 1

    and last 2 are valid, all others are invalid :)

  10. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    How do I know if they use the proper style?

  11. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    They want to know if they are legal and if they use the proper style

  12. hartnn
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 1

    whats the proper style?

  13. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I have no idea. Maybe with the case?

  14. hartnn
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 1

    i know about whether they are legal or not, i am not sure about styles.... try to dig it in your notes maybe?

  15. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Ok thanks. It doesn't say anywhere. It only talks about proper identifier syntax

  16. hartnn
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 1

    http://www.c4learn.com/c-programming/c-variable-nameing-rules/ here they have explained in more clarity for the naming rules.. will search styles on internet

  17. anonymous
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Thanks!

  18. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.