What will be the output of the program in TurboC?#include int fun(int **ptr); int main() { int i=10, j=20; const int *ptr = &i; printf(' i = %5X', ptr); printf(' ptr = %d', *ptr); ptr = &j; printf(' j = %5X', ptr); printf(' ptr = %d', *ptr); return 0; } - Study24x7
Social learning Network
03 Mar 2023 12:39 PM study24x7 study24x7

What will be the output of the program in TurboC?

#include<stdio.h> int fun(int **ptr); int main() { int i=10, j=20; const int *ptr = &i; printf(" i = %5X", ptr); printf(" ptr = %d", *ptr); ptr = &j; printf(" j = %5X", ptr); print...

See more

A

i= FFE2 ptr=12 j=FFE4 ptr=24

B

i= FFE4 ptr=10 j=FFE2 ptr=20

C

i= FFE0 ptr=20 j=FFE1 ptr=30

D

Garbage value

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles