Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q1) What is the type and output of the following? int arr[10]={2} arr: arr[0]: arr[1]: arr[10]: ============== Q2)What is the output of the following program?

Q1) What is the type and output of the following? int arr[10]={2} arr: arr[0]: arr[1]: arr[10]: ============== Q2)What is the output of the following program? #include int main() { int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m); return 0; } ============= Q3)The program may Write the corresponding C version using pointers and lists. String name = May ============= Q4)Write a recursive function that prints a string in reverse order.

============== Q5)Draw RAM and then write the output. #include int main() { static char *s[] = {"black", "white", "blue", "yellow"}; char **ptr[] = {s+3, s+2, s+1, s}, ***p; p = ptr; ++p; printf("%s", **p+1); return 0; }

CAN someone please solve these questions for me and make me understand each pls (in C programing language)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning C# 2005 Databases

Authors: Karli Watson

1st Edition

0470044063, 978-0470044063

More Books

Students also viewed these Databases questions