{Int x=30, *y, *z; y=&x; z=y; *y=(*z)++; z++; x++; print f("x=%d, y=%d, z=%d\n", x, y, z);... 1 answer below »

  • 643+ Users Viewed

  • 74+ Downloaded Solutions

  • New York, US Mostly Asked From

C prgoramming, please I need them all to be done. Thank you
int x 30, y, z; printf x %d, y %d, z %d n, x, y, z); return 0; A. x 32, y 500, z 500 C. x-32, y 500, z 504 B. x 31 504, z 508 D. x 31, 500, z 504 26. What will be the output of the program? include<stdio.h int main0 char str120] Hello; char p str. n, str); return 0; C. Mello A. Mello D. MHello B. Hello 27. For a 10x10 two-dimensional int array a,ifthe base adiness of the first element is 1000, what is address of the 4th element on the 3rd row? (Assuming each element 4 bynes). As 1096 B. 1092 C, 1100 D, 1132 28. int a[5] (11,22,33 44,55); int p a; that apply) which of the following is/are true? (choose all E. a p 29. What will be the output of the program? #include <stdio.h int main(0 int (3.1, 15, 20, 25: int i,j, m:
{Int x=30, *y, *z; y=&x; z=y; *y=(*z)++; z++; x++; print f("x=%d, y=%d, z=%d\n", x, y, z); return 0;} A. x=32, y=500, z=500 B. x=31 y=504, z=508 C. x=32, y=500, z=504 D. x=31, y=500, z=504 What will be the output of the program? #include int main() {char str[20] = "Hello"; char *p = str; *p = M; print f("%s\n" str); return 0;} A. Mello B> Hello C. HMello D. MHello For a 10x10 two-dimensional int array a. if the base address of the first element is 1000 what is the address of the 4th element on the 3rd row? (Assuming each dement occupies 4 bytes). A 1096 B. 1092 C 1100 D 1132 int a(5)={11 22 33 44 55); int*p = a; which of the following is/are true? (choose all that apply) A. p = = 11 B. p = = &a[0] C. *p = = 11 D. 11 = = p[0] E. a = = p What will be the output of the program? #include int main() {int a[5] = {3 1 15 20 25}; int i j m; i = ++a[1]; j = a[1] ++; m = a[1++];

1 Approved Answer

Vikas K
5 Ratings (14 Votes)
Solution 25 main(void) { int x = 30, *y, *z; y = &x; z = y; *y = (*z)++; z++; x++; printf("x = %d, y = %d, z = %d",x,y,z); return(0); } Correct Options are [B] and [C] If the address of variable x = 500, then...

Related Questions

Recent Questions in Programming Languages

Plagiarism Checker

Submit your documents and get free Plagiarism report

Free Plagiarism Checker