Question: a) Write a C program to read 1D array and define a function that accepts this input 1D array and its size. In the function

 a) Write a C program to read 1D array and define

a) Write a C program to read 1D array and define a function that accepts this input 1D array and its size. In the function definition merge the adjacent array elements and display the resultant numbers. Sample I/O Input 1D array: 12 13 15 6 7 8 Output: 1213 1315 156 67 78 b) Give the output of the following snippets. Justify your answer. i. int z = 270; float fu = 58.89; int *ptr=&z; float *ptr2= &fu; printf("%d ", *(&z)); printf("%f ", ptr2); ii. int no, sno, *ptr, *ptr2, m=0; scanf("%d%d", &no, &sno); ptr = &no; ptr2 =&sno; if(*ptr>*ptr2) printf("%d",m); else printf("%d",m++)

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!