Answered step by step
Verified Expert Solution
Question
1 Approved Answer
ELEC 1520, Homework 2, C Fundamentals Points Possible: 40 Submission Instructions: Your homework will be submitted electronically to Canvas. The file format must be a
ELEC 1520, Homework 2, C Fundamentals Points Possible: 40 Submission Instructions: Your homework will be submitted electronically to Canvas. The file format must be a .pdf file. Your file should be named elec 1520 homework02 your name.pdf. Substitute your first and last name for "your _name" in the file name. Example Students name is Sparky Watts. The file name is elec 1520_homework02_sparky watts.pdf. 1. What are the C identifier (variable) naming rules? 2. What do we mean by C has keywords? In general, what is a keyword? List 5 C keywords 3. State whether the following identifier names are legal C syntax. If they are not legal, state why, a. two cats b. 2cats c. cats2 d. dollars$ e. int f. unsigned g. VeriloglsFun 4. Name 8 C data types. Remember, signed and unsigned dat:a types are considered different data types. Example unsigned int is a different data type than int. 5. Write C programming statements for the following a. Declare a variable named count. Its data type is unsigned int. Do not initialize it to any value b. Declare a variable named low_value. Its data type is int. Initialize it to -5 c. Declare a variable of type double. Initialize it to 0.23. d. Declare a variable of tvpe float. Intialize it to zero e. Declare four variables of type char. Initialize one variable to 'z'. Initialize the other variables to the ASCII integer value for z', the ASCII octal value for 'z', and the ASCII hexadecimal value for 'z
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started