Answered step by step
Verified Expert Solution
Question
1 Approved Answer
d) Following program is designed to input five characters and find the character with minimum ASCII value. #include #include int main() { char a[5];
d) Following program is designed to input five characters and find the character with minimum ASCII value. #include #include int main() { char a[5]; int i=0; char minchar; printf("Enter characters->"); scanf("%s",a); minchar=a[0]; for(i=1;i =a[i]) { } printf("Minimum character = %c ",minchar); minchar=a[i]; Suppose, you entered characters "f, m, b, q, t". Table 1 describes how values of i, a[i] and minchar change within the for loop in each step. First row of the table 1 is filled. Write the table in your question paper and fill the blank boxes of the Table 1 with suitable values. steps i a 1 2 3 4 5 0 fmbqt fmbqt fmbqt fmbqt fmbqt Table 1 [10 marks] a[i] minchar f f
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