Question: 1 Assignment Write a C program that performs the following tasks. Declare and initialize variables of types int, char and float. You may initialize these

1 Assignment
Write a C program that performs the following tasks.
Declare and initialize variables of types int, char and float. You may initialize these variables to any appropriate value you want.
Print the values of these variables.
Create an integer array ID that contains the digits of your student ID.
Calculate and print the sum of the elements of ID.
Declare a pointer variable named ptrID that points to the first element of ID.
Access and print all the elements of ID using ptrID.
Write an algorithm that checks if each digit of ID is even or odd and prints the outcome accordingly.
 1 Assignment Write a C program that performs the following tasks.

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!