Question: Create a program in C that does the following. Declare 4 different types of variables and initialize them with a value. Print the address and

Create a program in C that does the following.
Declare 4 different types of variables and initialize them with a value.
Print the address and value of each variable.
Create a block of code like an "if" statement. Within the scope of the "if" statement; within the braces, declare and initialize a variable. Try using the variable outside of the scope without re-declaring it. take a screenshot of the error. Comment out the statement that is out of scope before you submit your program.
Create an array of size 10, initialize each element as a different number, and show that the array does take contiguous space by printing out the addresses.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!