English, asked by singhvaibhav022, 7 months ago

What is the output of the below program?
1 | #include <stdio.h>
21 int main()
31 {
4 1 int a[5] = {121.1, 241.1, 113.14, 141.532, 100.2228};
5 | int *ptr = (int*)(&a+1);
6 printf("%d %d", *(a+1), *(ptr - 1));
return 0;
}​

Answers

Answered by samar9730
1

Answer:

same value of per d will be returned because ptr is a+1

Answered by Swarup1998
0

Finding output.

Simply put the codes in any C compile software and the output will be given.

INPUT

#include <stdio.h>

int main()

{

int a[5] = {121.1, 241.1, 113.14, 141.532, 100.2228};

int *ptr = (int*)(&a+1);

printf("%d %d", *(a+1), *(ptr - 1));

return 0;

}

OUTPUT

241 100

Read more on Brainly.in

#include <stdio.h>

int main (int argv, char* argc[ ])

{

int x=280;

char*ptr_p=(char*) &x;

printf("%d\n",*ptr_p);

return 0;

}

- https://brainly.in/question/15218262

Similar questions