C programming  Consider the following code.         char a[10]; char ch = ‘a’; for(i = 0; i<8;i++) { a[i] = ch+8-i; } a[8] = ‘\0’; What will be stored in the given character array ‘a’ of the question after the execution of the block of code?    (10)

Oh no! Our experts couldn't answer your question.

Don't worry! We won't leave you hanging. Plus, we're giving you back one question for the inconvenience.

Submit your question and receive a step-by-step explanation from our experts in as fast as 30 minutes.
You have no more questions left.
Message from our expert:
It looks like you may have submitted a graded question that, per our Honor Code, experts cannot answer. We've credited a question to your account.
Your Question:

C programming 

Consider the following code.        

char a[10];

char ch = ‘a’;

for(i = 0; i<8;i++)

{

a[i] = ch+8-i;

}

a[8] = ‘\0’;

What will be stored in the given character array ‘a’ of the question after the execution of the block of code?    (10)

Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr