Integer and Character Arrays la) Using a character array (not a string), write a C -program to store the letters of the word "stressed",...
View the step-by-step solution to:

Question

please help me to solve these questions thanks

c+

alt="math .jpg" />

math .jpg

Integer and Character Arrays
la) Using a character array (not a string), write a C -program to store the letters of the word
"stressed", then print to the screen the word forward and backwards with the appropriate
statements.
Output Screen:
1 b) Use the watch window to find the address of the first element of the array. Compare this
address to the address found by some other members in your class,
Your Address:
Classmates* address :
2a) Using an array, write a C-program to store five numbers, the numbers should be 5 times
the (array [index] + 10) . Print out the index values and the numbers.
2b) Use the watch window to find the address of the 3'rd element (index(2)).
Address:
3) Using an array, write a C- program that receives 10 numbers from the user and prints out
the numbers entered and the smallest number.

Top Answer

View the full answer
00.png

v
Pls enter 10 numbers :
5
4
2
3
7
OT
54
2
9
5
The elements are : 5 4 2 3 7 10 54 2 9 5
Smallest element in the array : 2
. Program finished with exit code 0
Press ENTER to exit console.

20.png

9 #include <stdio. h>
10
11 int main()
12 ~ {
13
int a[10], i, small;
14
printf("Pls enter 10 numbers : \n") ;
15
for (i=0; i<10; i++)
16
scanf("%d", &a[i]) ;
17...

20.png

#include <stdio.h>
10
11 int main()
12 ~ {
13
char i;
14
char word [ ]="stressed" ;
15
printf( "Word in forward manner : ");
16
for(i=0; i<sizeof(word); i++)
17...

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question